-
Notifications
You must be signed in to change notification settings - Fork 9
/
SampleScript.ps1
45 lines (32 loc) · 1.45 KB
/
SampleScript.ps1
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
44
45
#Configure Imagefactory
.\Scripts\IMF-Configure.ps1 -DeploymentShare E:\MDTBuildLab -StartUpRAM 4 -VLANID 0 -Computername HYPERVHOST01 -SwitchName "SwitchName" -VMLocation E:\VMs -ISOLocation E:\ISO -ConcurrentRunningVMs 2 -BuildaccountName MDT_BA -BuildaccountPassword Passw0rd!#
#Install Imagefactory
.\Scripts\IMF-Install.ps1
#Uninstall Imagefactory
.\Scripts\IMF-Uninstall.ps1
#Import ISO
.\Scripts\IMF-ImportISO.ps1 -ISOImage D:\ISO\SW_DVD5_Win_Pro_Ent_Edu_N_10_1709_64BIT_English_MLF_X21-50143.ISO -OSFolder W10x6417091 -OrgName ViaMonstra
#.\Scripts\Import-ISO.ps1 -ISOImage D:\ISO\SW_DVD5_Win_Pro_Ent_Edu_N_10_1709_64BIT_English_MLF_X21-50143.ISO -OSFolder W10x6417092 -OrgName ViaMonstra
#Update Bootimage
.\Scripts\IMF-UpdateBootImage.ps1
#Make sure we are clean
.\Scripts\IMF-VerifyCleanupVMs.ps1
#Start the Image Factory
.\Scripts\IMF-Build.ps1 -EnableWSUS True
#Start the Image Factory
.\Scripts\IMF-Build.ps1 -EnableWSUS False
#Verify the build
.\Scripts\IMF-VerifyBuild.ps1 -KeepVMs False
#Make sure we are clean
.\Scripts\IMF-VerifyCleanupVMs.ps1
#Generate Report
.\Scripts\IMF-GenerateReport.ps1
#Generate VHDx
$DateTime = (Get-Date).ToString('yyyyMMdd')
$CaptureFolder = "E:\MDTBuildLab\Captures"
$VHDxFolder = "E:\VHD\$DateTime"
#.\Scripts\\ImageFactoryV3-ConvertToVHD.ps1 -CaptureFolder $CaptureFolder -VHDxFolder $VHDxFolder -UEFI $True -BIOS $false
# Publish
.\Scripts\IMF-Publish.ps1 -VHDUEFI -VHDBIOS
#Move to Archive
.\Scripts\IMF-Archive.ps1