|
|
@ -55,8 +55,9 @@ Start-Process "explorer.exe"
|
|
|
|
Write-Output "Waiting for explorer to complete loading"
|
|
|
|
Write-Output "Waiting for explorer to complete loading"
|
|
|
|
Start-Sleep 10
|
|
|
|
Start-Sleep 10
|
|
|
|
|
|
|
|
|
|
|
|
Write-Output "Removing additional OneDrive leftovers"
|
|
|
|
# This can break Windows Update and some system utilities, see #297.
|
|
|
|
foreach ($item in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) {
|
|
|
|
#Write-Output "Removing additional OneDrive leftovers"
|
|
|
|
Takeown-Folder $item.FullName
|
|
|
|
#foreach ($item in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) {
|
|
|
|
Remove-Item -Recurse -Force $item.FullName
|
|
|
|
# Takeown-Folder $item.FullName
|
|
|
|
}
|
|
|
|
# Remove-Item -Recurse -Force $item.FullName
|
|
|
|
|
|
|
|
#}
|
|
|
|