Open Sachiru opened 4 years ago
This only disables the dmwapppushsvc and then re-enables it after the work has been performed, as shown here:
Function CheckDMWService {
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 {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice
}
}
As per title.
The debloat script removes dmwappushsvc, which is needed when corporate policy disables the use of Outlook and prescribes Exchange ActiveSync and Windows Mail as the recommended method of accessing a corporate mailbox.