Jump to content
Sign in to follow this  
SoulA

Windows Permissions

Recommended Posts

SoulA

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.

Share this post


Link to post
Share on other sites
MrMitchell

Since you're using DOS command line already, try cacls.exe

Share this post


Link to post
Share on other sites
SoulA

Since you're using DOS command line already, try cacls.exe

I 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?

Share this post


Link to post
Share on other sites
MrMitchell

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?

Share this post


Link to post
Share on other sites
SoulA

Yeah I guess. Both of these CUI tools are pretty complicated syntactically it seems. Should be annoying to play with.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.