Added CheckService Functioin to start dmwappushservice if stopped

Added a function with an If statement that checks if the service dmwappushservice is running and if not then it will start it.
pull/243/head
Richard Newton 6 years ago committed by GitHub
parent 4cf8cd27d4
commit 9d3e8b8504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -201,6 +201,13 @@ Function FixWhitelistedApps {
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} }
}
Function CheckService {
Param([switch]$Debloat)
If (Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice }
Write-Output "Initiating Sysprep"
Begin-SysPrep
Write-Output "Removing bloatware apps."

Loading…
Cancel
Save