How do I use a variable in icacls.exe for the username - TechRepublic
Question
March 16, 2010 at 07:24 PM
sarah.peterson

How do I use a variable in icacls.exe for the username

by sarah.peterson . Updated 16 years ago

I am writing a script to change the ntfs security on hundreds of folders on Windows Server 2008. I need to be able to use the icacls.exe with a variable in place of the username in the /grant:r switch. I have tested this and tried numerous things over the past few days and now am at a critical time where I need to get this resolved. I have searched numerous forums online and have come up empty handed. Please help! Tell me if there is a way to do what I need to do or if I am dreaming!!

This discussion is locked

All Comments