Skip to content

Instantly share code, notes, and snippets.

@JorgeFrancoIbanez
Created April 9, 2020 21:24
Show Gist options
  • Save JorgeFrancoIbanez/bbacbd022ffb45544bee4c3cedeaee6f to your computer and use it in GitHub Desktop.
Save JorgeFrancoIbanez/bbacbd022ffb45544bee4c3cedeaee6f to your computer and use it in GitHub Desktop.
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\MapsBroker' -Name Start -Value 4
$onesync = (Get-ChildItem 'HKLM:\System\CurrentControlSet\Services' | ?{$_.PSChildName -like "OneSync*"}).Name
$here = Get-Location
cd HKLM:\
ForEach($sync in $onesync) {
Set-ItemProperty -Path $sync -Name Start -Value 4
}
cd $here
Get-Service OneSync* | Stop-Service -Force
Get-Service MapsBroker | Stop-Service -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment