forked from bfrankMS/CreateHypervVms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3_PostInstallScripts.psd1
43 lines (43 loc) · 1.46 KB
/
3_PostInstallScripts.psd1
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
31
32
33
34
35
36
37
38
39
40
41
42
43
@{
VM0 = @{
vmPostInstallSteps = @(
@{
stepHeadline = "Step0 - TimeStamp" # Headline of the step - ! steps will be performed in alphabetical order !
scriptFilePath = "step_AddDateTimeToLog.ps1" # Path to the script to be executed
requiresRestart = $false # Does the step require a restart of the VM?
}
<#@{
stepHeadline = "Step1 - NextStep"
scriptFilePath = "step_AddDateTimeToLog.ps1"
requiresRestart = $false
}
.
.
.
#>
)
}
VM1 = @{
<#
vmCopySteps = @(
@{
stepHeadline = 'Copy something to the VM'
sourcePath = '.\copyIntoVM.txt' # local (in this folder) archive to be copied to vm
destPath = 'c:\temp\copyIntoVM.txt' # destination full path inside the vm
}
)
#>
vmPostInstallSteps = @(
@{
stepHeadline = "Step0 - TimeStamp"
scriptFilePath = "step_AddDateTimeToLog.ps1"
requiresRestart = $false
}
@{
stepHeadline = "Step1 - Windows Update"
scriptFilePath = "step_DoWindowsUpdates.ps1"
requiresRestart = $true
}
)
}
}