Fixed CheckInstallService function

pull/82/head
Richard Newton 6 years ago committed by GitHub
parent 0762b0a8d0
commit df471e039d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save