Jump to content

create default profile?


Recommended Posts

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


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

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
  • Recently Browsing   0 members

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