-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot run remove onedrive "cannot remove item" "access to path denied" #222
Comments
Sorry for the late reply. At this point it's pretty normal to get some errors. These scripts operate in a best-effort manner and may fail at some points. Let me you know if you come up with a fix. Otherwise I'd say this error is safe to ignore. |
I faced this same issue, it's a timming thing. What I did was break the OneDrive script in 2 parts: I tested using W10 1909 in a VM and it now works 100% of the time. You might like some of the ideas: |
I solved one more piece of the puzzle. To successfully delete the leftovers, it's necessary to stop
|
Man si te fijas cuando da error te pone la ruta de el archivo el cual no se elimino solo ingresa a esa ruta y eliminalo manualmente es lo que hice |
@Daynicgg Please stick to English. If that is not possible, please attach a Google Translated version of your messages. |
he says that when the error appears, the location of the file is shown so simply go to that folder and delete it manually. If that doesn't work then try with " IObit Unlocker" |
Nice! Can you help me out with one other issue while I got you here? How do
I renable microphone access after disabling with sharp app? I don't have
the command here nor the logs, but I tried deleting the added registry
entry and leaving the value as default, yet I am still unable to tenable
the microphone. Any advice would be appreciated!
Again, thanks for your help!
…On Fri, Jan 31, 2020, 12:58 AM Cleber Baldan Junior < ***@***.***> wrote:
I solved one more piece of the puzzle.
To successfully delete the leftovers, it's necessary to stop explorer.exe
before deleting them.
Plus, for whatever reason, the $env:LOCALAPPDATA\Microsoft\OneDrive was
not there a few times, so I added a test before deleting.
Stop-Process -name explorer
Start-Sleep -s 3
# Removing OneDrive leftovers
foreach ($directory in (Get-ChildItem "$env:WinDir\WinSxS\*onedrive*")) {
Remove-Item -Recurse -Force $directory.FullName
}
$localUserOneDriveFolder = "$env:LOCALAPPDATA\Microsoft\OneDrive"
if (Test-Path $localUserOneDriveFolder) {
Remove-Item -Recurse -Force $localUserOneDriveFolder
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#222?email_source=notifications&email_token=ANXKHWKEJW7EKZDGYEQDSYDRAPR47A5CNFSM4J4VQWPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKN7D5A#issuecomment-580645364>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANXKHWOT342RX7EQZ7MBFHDRAPR47ANCNFSM4J4VQWPA>
.
|
I followed all of the steps correctly and am using admin powershell, yet i get this set of errors everytime.
The text was updated successfully, but these errors were encountered: