Fixed CheckInstallService and CheckDMWService Functions

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

@ -466,7 +466,7 @@ $RemoveAllBloatware.Add_Click( {
}
}
Function CheckService {
Function CheckDMWService {
If (Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice
@ -495,6 +495,7 @@ $RemoveAllBloatware.Add_Click( {
#Write-Host "Stopping Edge from taking over as the default PDF Viewer."
#Stop-EdgePDF
Write-Output "Setting the 'InstallService' Windows service back to "Started" and the Startup Type "Automatic".
CheckDMWService
CheckInstallService
Write-Host "Finished all tasks. `n"
@ -709,7 +710,7 @@ $RemoveBloatNoBlacklist.Add_Click( {
}
}
Function CheckService {
Function CheckDMWService {
Param([switch]$Debloat)
@ -737,8 +738,9 @@ $RemoveBloatNoBlacklist.Add_Click( {
Protect-Privacy
#Write-Host "Stopping Edge from taking over as the default PDF Viewer."
Write-Host "Checking to make sure that the service 'dmwappushservice' has been started."
CheckService
CheckDMWService
Write-Output "Setting the 'InstallService' Windows service back to started and setting the Startup Type to "Automatic".
CheckInstallService
Write-Host "Finished all tasks. `n"
})

Loading…
Cancel
Save