forked from ConfigMgrHydration/Setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall-HYDConfigMgr2012SP2.ps1
More file actions
26 lines (18 loc) · 1.05 KB
/
Install-HYDConfigMgr2012SP2.ps1
File metadata and controls
26 lines (18 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<#
************************************************************************************************************************
Created: 2015-03-01
Version: 1.1
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the author or DeploymentArtist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploymentresearch.com
************************************************************************************************************************
#>
# Validation
if (!(Test-Path -path C:\Setup\CM2012SP2\SMSSETUP\BIN\X64\setup.exe)) {Write-Warning "Could not find ConfigMgr 2012 SP2 setup files, aborting...";Break}
if (!(Test-Path -path C:\Setup\CM2012SP2DL\ConfigMgr.Manifest.cab)) {Write-Warning "Could not find ConfigMgr 2012 SP2 Prereq files, aborting...";Break}
if (!(Test-Path -path E:\)) {Write-Warning "Could not find Program Files Volume, aborting...";Break}
# Install ConfigMgr 2012 SP2
C:\Setup\CM2012SP2\SMSSETUP\BIN\X64\setup.exe /Script C:\Setup\Scripts\HYDCM2012Unattend.ini /NoUserInput