To remove the rights for users to create folders in the root of the C: drive, you can use the following command in a batch script:
icacls C:\ /remove:g *S-1-5-11
If you need to revert this change and grant users the rights to create folders in the root of the C: drive again, you can use the following commands in a batch script:
icacls C:\ /grant *S-1-5-11:(AD)
icacls C:\ /grant *S-1-5-11:(OI)(CI)(IO)M
0 Comments