How to remove special NTFS permission from folders and subfolders
How to remove special NTFS permission from folders and subfolders
To remove special NTFS (New Technology File System) permissions from a folder and its subfolders in Windows, you can use the icacls command in the Command Prompt with the appropriate parameters. Here is a basic guide:
1. Open Command Prompt as Administrator:
Press Win + X and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)" from the menu.
2. Navigate to the Folder:
Use the cd command to navigate to the directory where your folder is located. For example:
"CD C:\temp"
3. View Current Permissions:
Before making any changes, you might want to view the current permissions. You can use the following command:
"icacls . /save OriginalPermissions.txt /t"
4. Remove Special Permission:
icacls . /remove:g <username>:<permission> /t
expl: icacls . /remove:g sa-rranjan /t
5. Remember to be cautious when modifying permissions, especially if you are dealing with systems or critical folders. Always double-check your commands and have a backup of important data. Additionally, make sure you have administrative privileges to perform these actions.
6. Restore Original Permissions (if needed):If you saved the original permissions, you can restore them using the following command:
icacls . /restore OriginalPermissions.txt
Comments
Post a Comment