|
|
|
@ -13,7 +13,7 @@ Function Begin-SysPrep {
|
|
|
|
|
|
|
|
|
|
param([switch]$SysPrep)
|
|
|
|
|
|
|
|
|
|
get-appxpackage | remove-appxpackage
|
|
|
|
|
get-appxpackage | remove-appxpackage -ErrorAction SilentlyContinue
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -223,7 +223,7 @@ Function FixWhitelistedApps {
|
|
|
|
|
Get-AppxPackage -allusers Microsoft.Paint3D | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
|
|
|
|
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
|
|
|
|
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
|
|
|
|
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} } }
|
|
|
|
|
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Write-Output "Initiating Sysprep"
|
|
|
|
|