📜  无法枚举容器中的对象访问被拒绝 windows 10 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:18.941000             🧑  作者: Mango

代码示例1
//Execute the following commands, pressing the Enter key in-between each command. Make sure to replace “FULL_PATH_HERE” with the path to your affected file or folder.

takeown /F X:\FULL_PATH_HERE
takeown /F X:\FULL_PATH_HERE /r /d y
icacls X:\FULL_PATH_HERE /grant Administrators:F
icacls X:\FULL_PATH_HERE /grant Administrators:F /t

//Close the Command Prompt and try changing the permissions for the file or folder affected.