Browse Source

Merge pull request #129 from atroxes/patch-1

Remove OneDrive scheduled task
pull/110/merge
Alex Hirsch 7 years ago
committed by GitHub
parent
commit
a515872884
  1. 3
      scripts/remove-onedrive.ps1

3
scripts/remove-onedrive.ps1

@ -42,6 +42,9 @@ reg unload "hku\Default"
echo "Removing startmenu entry"
rm -Force -ErrorAction SilentlyContinue "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
echo "Removing scheduled task"
Get-ScheduledTask -TaskPath '\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false
echo "Restarting explorer"
start "explorer.exe"

Loading…
Cancel
Save