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

Brian used Ask the Experts™
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?
Watch Question

Do more with

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

Open in new window


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