icacls command to remove multiple users permissions from a folder at one icacls command in win 2008 R2
-
Wednesday, February 22, 2012 8:44 PM
hi friends
in win2008 R2, i want to know is it possible to remove multiple users permissions from security tab of a folder at once ? ( at one icacls command ? )
for example in my C: drive, i have a folder called "MyFolder" to which the user1 and person2 and teacher3 have Modify permission.
i want to remove their permissions from MyFolder at once. i tried this command but it doesn't work :
icacls c:\MyFolder /remove:g user1,person2,teacher3 doesn't work.
any solution please
thanks in advance
- Edited by john.s2011 Wednesday, February 22, 2012 8:46 PM
- Edited by john.s2011 Wednesday, February 22, 2012 8:47 PM
- Edited by john.s2011 Wednesday, February 22, 2012 8:47 PM
All Replies
-
Thursday, February 23, 2012 1:21 AM
Run the command prompt as Administrator, then try it with the domain name:
icacls c:\MyFolder /remove:g domain\user1, domain\person2, domain\teacher3 (with commas)
or
icacls c:\MyFolder /remove:g domain\user1 domain\person2 domain\teacher3 (without commas)
.
Ace
Ace Fekay
MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.phpThis posting is provided AS-IS with no warranties or guarantees and confers no rights.
- Marked As Answer by Tiger LiModerator Thursday, February 23, 2012 4:31 AM
-
Thursday, February 23, 2012 4:20 AM
Run the command prompt as Administrator, then try it with the domain name:
icacls c:\MyFolder /remove:g domain\user1, domain\person2, domain\teacher3 (with commas)
or
icacls c:\MyFolder /remove:g domain\user1 domain\person2 domain\teacher3 (without commas)
.
Ace
Ace Fekay
MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.phpThis posting is provided AS-IS with no warranties or guarantees and confers no rights.
hi Dear Ace, thank you very much for the solution. i really didn't find this solution anywhere
you are really great in network ;-)
best regards
- Edited by john.s2011 Thursday, February 23, 2012 4:54 PM
-
Thursday, February 23, 2012 4:36 AM
You are welcome, John! :-)
Cheers!
Ace Fekay
MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.phpThis posting is provided AS-IS with no warranties or guarantees and confers no rights.

