dkreifus Posted February 10, 2006 Share Posted February 10, 2006 Is there a batch file script that all my googling has missed?I want to be able to take one profile, (administrator) and copy it to the default profile, and change all the permissions.Essentially, automate the process of going to My Computer -> Properties -> Advanced..User Profile Settings and using the Copy To function... (and change permissions to everyone).I have a VB script that does it, but I wanted to do it all in batch script Link to comment Share on other sites More sharing options...
Doc Symbiosis Posted February 11, 2006 Share Posted February 11, 2006 This batch should be no problem just use the xcopy command to copy the profiles and the cacls command to set the user permissions like you want them to be.if you use the /O switch within the xcopy command, the ACLs are copied aswell, so that normally you don't have to set any further permissions.In batches, I normally use the /OHEICK switch, when I want to copy a whole folder with ACLs. 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