Jump to content

Recommended Posts

Posted

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


Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...