Jump to content

User Profile Copying in Command-line


Recommended Posts

Posted

Hi Guys

I have a script that I wish to run to copy the Administrator profile to the Default user as I wish every new user login to take on the Administrator profile settings. I have created the scripts to create a 'copy' user, reboot and login as copy and then reboot and login as administrator again once the profile is copied.

To normally copy the profile you would goto System Properties, Advanced Tab, User Profiles Settings. Select the Administrator profile and then select Copy To and enter c:\documents and settings\default user.

I have found a Microsoft CopyProfile utility (http://www.microsoft.com/downloads/details.aspx?FamilyID=ed182a96-f3a6-4fdd-862b-1ae03dc130c1&displaylang=en) which you are able to perform this operation at the command-line or in a script.

In the readme it states the following commandline: CopyProfile.exe administrator “C:\Documents and Settings\Default User” Everyone.

When trying to run this it gives the following error message: Invalid permitted-to-use account name. This to do with 'Everyone'. I have tried Administrator, omitting it and also changing the path - but I always get the same error. I have also tried to rebuild the PC. I have got this to work on a PC that is connected to a Domain.

Has anyone else used this and encountered the error. Could someone else try this utility on a non-domained PC and see if it works.

Thank in adv

Adam.


Posted (edited)

Have you got windows is native enu ?

On french windows I must use "Tout le monde" instead of Everyone ...

C:\Program Files\Microsoft CopyProfile>CopyProfile.exe Utilisateur d:\test "Tout le monde"
Source profile in use. Cannot continue.
Copy Profile Failed

But I don't want to close my session, but it seems to work ... the destinator folder will be deleted too ...

Edited by sonic

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...