瀏覽代碼

Update Windows10SysPrepDebloater.ps1

Richard Newton 6 年之前
父節點
當前提交
4001abbc2e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Windows10SysPrepDebloater.ps1

+ 3 - 3
Windows10SysPrepDebloater.ps1

@@ -13,7 +13,7 @@ Function Begin-SysPrep {
         Write-Verbose -Message ('Starting Sysprep Fixes')
  
         # 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"
         If (!(Test-Path $registryPath)) {
             Mkdir $registryPath -ErrorAction SilentlyContinue
@@ -24,8 +24,8 @@ Function Begin-SysPrep {
         }
         #Stop WindowsStore Installer Service and set to Disabled
         Write-Verbose -Message ('Stopping InstallService')
-        Stop-Service InstallService
- }
+        Stop-Service InstallService 
+ } #>
 
 #Creates a PSDrive to be able to access the 'HKCR' tree
 New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT