mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-24 11:45:29 +00:00
Added error handling parameter on line 16
I added error handling on line 16; -ErrorAction SilentlyContinue in order to suppress any details in the MDT logs.
This commit is contained in:
parent
7302794884
commit
56d424df86
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user