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

2 Comments

root · 18 November 2024 at 4h46

Wouldn’t restricting Folder Creation in C: Drive Root interfere with the proper operation of some software?

david · 21 November 2024 at 8h44

Hello,

This method aims to limit the locations where user data is stored, making migrations or computer replacements easier.

For standard off-the-shelf applications, this generally does not cause any issues. However, some specific business applications might require particular adjustments.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.