-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathInstall-HYDConfigMgr.ps1
More file actions
30 lines (21 loc) · 1.11 KB
/
Install-HYDConfigMgr.ps1
File metadata and controls
30 lines (21 loc) · 1.11 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
27
28
29
30
<#
************************************************************************************************************************
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
************************************************************************************************************************
#>
$SetupFile = "C:\Setup\ConfigMgr 1606\SMSSETUP\BIN\X64\setup.exe"
$ConfigurationFile = "C:\Setup\Scripts\HYDConfigMgr.ini"
$PreReqFile = "C:\Setup\ConfigMgr 1606 PreReqs\ConfigMgr.Manifest.cab"
# Validation
if (!(Test-Path -path $SetupFile)) {Write-Warning "Could not find ConfigMgr setup files, aborting...";Break}
if (!(Test-Path -path $PreReqFile)) {Write-Warning "Could not find ConfigMgr Prereq files, aborting...";Break}
if (!(Test-Path -path E:\)) {Write-Warning "Could not find Program Files Volume, aborting...";Break}
# Install ConfigMgr Current Branch
& $SetupFile /Script $ConfigurationFile /NoUserInput