|
|
@ -13,7 +13,7 @@ Function Begin-SysPrep {
|
|
|
|
Write-Verbose -Message ('Starting Sysprep Fixes')
|
|
|
|
Write-Verbose -Message ('Starting Sysprep Fixes')
|
|
|
|
|
|
|
|
|
|
|
|
# Disable Windows Store Automatic Updates
|
|
|
|
# Disable Windows Store Automatic Updates
|
|
|
|
Write-Verbose -Message "Adding Registry key to Disable Windows Store Automatic Updates"
|
|
|
|
<# Write-Verbose -Message "Adding Registry key to Disable Windows Store Automatic Updates"
|
|
|
|
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore"
|
|
|
|
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore"
|
|
|
|
If (!(Test-Path $registryPath)) {
|
|
|
|
If (!(Test-Path $registryPath)) {
|
|
|
|
Mkdir $registryPath -ErrorAction SilentlyContinue
|
|
|
|
Mkdir $registryPath -ErrorAction SilentlyContinue
|
|
|
@ -25,7 +25,7 @@ Function Begin-SysPrep {
|
|
|
|
#Stop WindowsStore Installer Service and set to Disabled
|
|
|
|
#Stop WindowsStore Installer Service and set to Disabled
|
|
|
|
Write-Verbose -Message ('Stopping InstallService')
|
|
|
|
Write-Verbose -Message ('Stopping InstallService')
|
|
|
|
Stop-Service InstallService
|
|
|
|
Stop-Service InstallService
|
|
|
|
}
|
|
|
|
} #>
|
|
|
|
|
|
|
|
|
|
|
|
#Creates a PSDrive to be able to access the 'HKCR' tree
|
|
|
|
#Creates a PSDrive to be able to access the 'HKCR' tree
|
|
|
|
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
|
|
|
|
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
|
|
|
|