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 commentaire

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.