ehm*_*ehm 12 windows permissions onedrive
我最近重置了我的 Windows 10 计算机。
我连接了两个驱动器:
在 D: 驱动器上,我有旧的 onedrive 文件夹。d:\OneDrive 重新安装 Windows 10 后,它会自动使 OneDrive 出现在此处:c:\users\xxx\Onedrive
我现在想删除 D: 驱动器上的旧 onedrive 文件夹。问题是 Windows 不允许我删除、重命名、复制或移动那个旧文件夹。给我这个错误:
错误 0x8007018B:拒绝访问云文件。
由于它是一个镜像驱动器,我不能轻易地而是一个便携式 unix-OS 来直接修改它,所以现在我不知道该怎么办。该错误消息在网络上没有详细记录。
小智 14
通过打开 Powershell(管理员),我能够摆脱旧的 OneDrive 文件夹。然后转到父目录并使用命令
Remove-Item "OneDrive folder name" -Recurse -Force
Run Code Online (Sandbox Code Playgroud)
要打开 Powershell,请按 Window 键和 X
您需要在 OneDrive 中禁用第一个“按需文件”功能:
Remove-Item .\Your_Folder_Name\ -Force
如果仍然不起作用并且您面临错误:
Remove-Item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
然后这样做:
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
cmd /c rmdir /s /q C:\Users\Your_User_Name\Your_Folder_Name
PowerShell 无法处理损坏的符号链接,请使用锤子,使用 CMD。
归档时间: |
|
查看次数: |
43432 次 |
最近记录: |