3 replies
by sarah.peterson Accepted solution
by john.light Accepted solution
set userv=auserid
icacls c:\dir\tochange /grant:r %userv%:(OI)(CI)(IO)RX
by blackepyon01 Accepted solution
I'm also re-doing my user creation script. Originaly, I made my script for Server2003 and used Cacls for the permissions. I'm currently trying to figure out syntax for ICACLS as I had it for CACLS (haven't had any luck with CACLS on Server2008).
Have you tried Cacls, or are you just trying to go with ICacls?
I will say one thing about variables in scrips, and that is to mind your quotations. Quote the command, unquote the variable and put ampersand before and after, quote again for switches.
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending