Browse Source
Merge branch 'W4RH4WK:master' into master
pull/290/head
MagicLike
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
5 deletions
-
scripts/remove-onedrive.ps1
|
|
@ -55,8 +55,9 @@ Start-Process "explorer.exe" |
|
|
|
Write-Output "Waiting for explorer to complete loading" |
|
|
|
Start-Sleep 10 |
|
|
|
|
|
|
|
Write-Output "Removing additional OneDrive leftovers" |
|
|
|
foreach ($item in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) { |
|
|
|
Takeown-Folder $item.FullName |
|
|
|
Remove-Item -Recurse -Force $item.FullName |
|
|
|
} |
|
|
|
# This can break Windows Update and some system utilities, see #297. |
|
|
|
#Write-Output "Removing additional OneDrive leftovers" |
|
|
|
#foreach ($item in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) { |
|
|
|
# Takeown-Folder $item.FullName |
|
|
|
# Remove-Item -Recurse -Force $item.FullName |
|
|
|
#} |
|
|
|