Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Windows Vista, I'm looking to remove a user group from having access to a set of folders. I'm trying to remove the group from the folders completely. I'm wondering how I would do this in a command prompt.

In the GUI you would do this by right clicking on a folder, selecting Properties and then navigating to the security tab and selecting "Remove" on a security group.

share|improve this question
1  
you can use icacls –  Sathya Jun 27 '11 at 6:38

1 Answer 1

up vote 3 down vote accepted

The command you want is:

CACLS C:\directory /E /R /T /C "GroupName"

Do CACLS /? at a command prompt for the switch usage details, or Google "CACLS examples" (without the quotes).

share|improve this answer
    
Note: I used ICACLS since CACLS is depreciated in Vista. –  contactmatt Jul 20 '11 at 16:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.