SoulA Posted March 31, 2009 Share Posted March 31, 2009 I have to write something for work. Basically it creates a new user group in Windows and then populates the group with users. This is easy enough with Net User and Net LocalGroup through the command line. However once those are created I need to give the group permissions to the files on the computer. What would the best way to give for example read+write only permissions to all files on the computer? I looked through the forums and didn't see anything that stood out as useful on the subject. Maybe I missed something. Any help appreciated. Link to comment Share on other sites More sharing options...
MrMitchell Posted March 31, 2009 Share Posted March 31, 2009 Since you're using DOS command line already, try cacls.exe Link to comment Share on other sites More sharing options...
SoulA Posted March 31, 2009 Author Share Posted March 31, 2009 Since you're using DOS command line already, try cacls.exeI saw that and was looking at it in vista and it says it is now depreciated and you should use Icacls. Is it the same with xp or no? Link to comment Share on other sites More sharing options...
MrMitchell Posted March 31, 2009 Share Posted March 31, 2009 Didn't know you were using Vista. cacls.exe is for XP for sure. If you're using a mix of XP and Vista, can you detect the OS and go from there? Link to comment Share on other sites More sharing options...
SoulA Posted March 31, 2009 Author Share Posted March 31, 2009 Yeah I guess. Both of these CUI tools are pretty complicated syntactically it seems. Should be annoying to play with. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now