diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 308eea0..673baf4 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -475,10 +475,10 @@ $RemoveAllBloatware.Add_Click( { Function CheckInstallService { - If (Get-Service -Name InstallService | Where-Object ($_.Status -eq "Stopped"}) { - Start-Service -Name InstallService - Set-Service -Name InstallService -StartupType Automatic - } + If (Get-Service -Name InstallService | Where-Object {$_.Status -eq "Stopped"}) { + Start-Service -Name InstallService + Set-Service -Name InstallService -StartupType Automatic + } } Write-Host "Initiating Sysprep" @@ -720,10 +720,10 @@ $RemoveBloatNoBlacklist.Add_Click( { Function CheckInstallService { - If (Get-Service -Name InstallService | Where-Object ($_.Status -eq "Stopped"}) { - Start-Service -Name InstallService - Set-Service -Name InstallService -StartupType Automatic - } + If (Get-Service -Name InstallService | Where-Object {$_.Status -eq "Stopped"}) { + Start-Service -Name InstallService + Set-Service -Name InstallService -StartupType Automatic + } } Begin-SysPrep