From 0762b0a8d081e30bce16bffa671c8862fb5bbd90 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 9 Nov 2018 16:48:29 -0800 Subject: [PATCH] Fixed CheckInstallService Function --- Windows10SysPrepDebloater.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Windows10SysPrepDebloater.ps1 b/Windows10SysPrepDebloater.ps1 index a01ac05..ea94df0 100644 --- a/Windows10SysPrepDebloater.ps1 +++ b/Windows10SysPrepDebloater.ps1 @@ -216,6 +216,8 @@ Function CheckInstallService { If (Get-Service -Name InstallService | Where-Object ($_.Status -eq "Stopped"}) { Start-Service -Name InstallService Set-Service -Name InstallService -StartupType Automatic + } + } Write-Output "Initiating Sysprep" Begin-SysPrep