2
0
Эх сурвалжийг харах

Fixed CheckInstallService function

Richard Newton 6 жил өмнө
parent
commit
df471e039d

+ 8 - 8
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