Merge pull request #107 from angelsl/master

Don't silently remove OneDrive directory
This commit is contained in:
Alex Hirsch 2017-04-10 16:00:25 +02:00 committed by GitHub
commit 911e15a463

View File

@ -19,7 +19,6 @@ if (Test-Path "$env:systemroot\SysWOW64\OneDriveSetup.exe") {
echo "Removing OneDrive leftovers"
rm -Recurse -Force -ErrorAction SilentlyContinue "$env:localappdata\Microsoft\OneDrive"
rm -Recurse -Force -ErrorAction SilentlyContinue "$env:programdata\Microsoft OneDrive"
rm -Recurse -Force -ErrorAction SilentlyContinue "$env:userprofile\OneDrive"
rm -Recurse -Force -ErrorAction SilentlyContinue "C:\OneDriveTemp"
echo "Disable OneDrive via Group Policies"