Fixed Sc command

pull/38/head
Matt 6 years ago
parent 30541754f6
commit d770bf1f2b

@ -103,7 +103,7 @@ Function Begin-SysPrep {
}
#Stop WindowsStore Installer Service and set to Disabled
Stop-Service InstallService
sc config InstallService start=disabled
& sc config InstallService start=disabled
}
}
@ -318,7 +318,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"}
}
}
}

Loading…
Cancel
Save