-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStandard.ps1
More file actions
24 lines (19 loc) · 806 Bytes
/
Copy pathStandard.ps1
File metadata and controls
24 lines (19 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Write-Host -ForegroundColor Green “Starting OSDCloud ZTI”
Start-Sleep -Seconds 5
#Change Display Resolution for Virtual Machine
if ((Get-MyComputerModel) -match ‘Virtual’) {
Write-Host -ForegroundColor Green “Setting Display Resolution to 1600x”
Set-DisRes 1600
}
#Make sure I have the latest OSD Content
Write-Host -ForegroundColor Green “Updating OSD PowerShell Module”
Install-Module OSD -Force
Write-Host -ForegroundColor Green “Importing OSD PowerShell Module”
Import-Module OSD -Force
#Start OSDCloud ZTI the RIGHT way
Write-Host -ForegroundColor Green “Start OSDCloud”
Start-OSDCloud -OSLanguage en-us -OSBuild 24H2 -OSEdition Enterprise -ZTI
#Restart from WinPE
Write-Host -ForegroundColor Green “Restarting in 20 seconds!”
Start-Sleep -Seconds 20
wpeutil reboot