Closed sys-adm90 closed 4 months ago
These are available via variables. You can see how I'm doing it in my automated Win11 Build Script: https://github.com/gwblok/garytown/blob/master/Dev/CloudScripts/win11.ps1
$OSName = 'Windows 11 23H2 x64'
$OSEdition = 'Pro'
$OSActivation = 'Retail'
$OSLanguage = 'en-us'
#Set OSDCloud Vars
$Global:MyOSDCloud = [ordered]@{
Restart = [bool]$False
RecoveryPartition = [bool]$true
OEMActivation = [bool]$True
WindowsUpdate = [bool]$true
WindowsUpdateDrivers = [bool]$true
WindowsDefenderUpdate = [bool]$true
SetTimeZone = [bool]$true
ClearDiskConfirm = [bool]$False
ShutdownSetupComplete = [bool]$false
SyncMSUpCatDriverUSB = [bool]$true
CheckSHA1 = [bool]$true
}
Start-OSDCloud -OSName $OSName -OSEdition $OSEdition -OSActivation $OSActivation -OSLanguage $OSLanguage
It would be great to have the Setup Complete Options also available with the command line ,,Start-OSDCloud'' to use this for a ZTI solution. There is a -firmware parameter but nothing for setup complete or Windows Update.