|
|
|
@ -129,6 +129,8 @@ Else {
|
|
|
|
|
Write-Output "The folder $DebloatFolder was successfully created."
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Start-Transcript -OutputDirectory "$DebloatFolder"
|
|
|
|
|
|
|
|
|
|
#region gui events {
|
|
|
|
|
$RemoveBlacklist.Add_Click( {
|
|
|
|
|
$ErrorActionPreference = 'silentlycontinue'
|
|
|
|
@ -246,7 +248,7 @@ If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disable
|
|
|
|
|
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
|
|
|
|
|
Start-Service -Name dmwappushservice}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Function DebloatAll {
|
|
|
|
|
|
|
|
|
@ -500,15 +502,14 @@ If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"})
|
|
|
|
|
|
|
|
|
|
Function CheckDMWService {
|
|
|
|
|
|
|
|
|
|
Param([switch]$Debloat)
|
|
|
|
|
Param([switch]$Debloat)
|
|
|
|
|
|
|
|
|
|
If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disabled"}) {
|
|
|
|
|
Set-Service -Name dmwappushservice -StartupType Automatic}
|
|
|
|
|
If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disabled"}) {
|
|
|
|
|
Set-Service -Name dmwappushservice -StartupType Automatic}
|
|
|
|
|
|
|
|
|
|
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
|
|
|
|
|
Start-Service -Name dmwappushservice}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
|
|
|
|
|
Start-Service -Name dmwappushservice}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Function CheckInstallService {
|
|
|
|
|
|
|
|
|
|