How to remove "full control" and "modify" rights from home directories?

Brian
Brian used Ask the Experts™
on
I have a folder containing users' home directories that I want to remove "Modify" and "Full Control" from each user's rights.  I have a file of all the usernames, but I need to know the proper syntax for icacls.  I think it would be something like this...

icacls  t:\users\my.user\*.*  /remove:F /remove:M my.user /T

Would this be correct?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
End-user support
Commented:
icacls  t:\users\my.user  /remove:g my.user /T

Open in new window

Author

Commented:
I believe /remove:g removes all rights.  Ended up using /grant:r and replacing the rights.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial