Sycnex / Windows10Debloater

Script to remove Windows 10 bloatware.
MIT License
17.93k stars 2.03k forks source link

Removal of dmwappushsvc breaks Exchange ActiveSync on Windows Mail #204

Open Sachiru opened 4 years ago

Sachiru commented 4 years ago

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.

Sycnex commented 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
} 

}