Create New User and Generate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm in the process of trying to migrate a user from one machine to another. The USMT nor the Files and Settings Wizard work for my situation. What I'd like to be able to do through either a VBS or Command Line is

Create new user and generate the profile using the "default" profile settings

As it is now, I can net use <username><Password> /add /<other options> and create the account. But it doesn't actually generate the profile unless I login as that new account. Anyone know of a way to handle this? Copying the old profile over before logging in and generating the profile ends up ignoring what I moved over and generating a <username>.000 profile. I'm not on a domain, so netdom isn't an option either (as far as I understand netdom)

TIA
 
Netdom would not solve your issue even if you were on a domain.
AFAIK the only way to get the profile created is to login with the
new account.

--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCSE (W2k3,W2k,Nt4) MCDBA
LarryO said:
I'm in the process of trying to migrate a user from one machine to
another. The USMT nor the Files and Settings Wizard work for my situation.
What I'd like to be able to do through either a VBS or Command Line is:
Create new user and generate the profile using the "default" profile settings.

As it is now, I can net use <username><Password> /add /<other options> and
create the account. But it doesn't actually generate the profile unless I
login as that new account. Anyone know of a way to handle this? Copying
the old profile over before logging in and generating the profile ends up
ignoring what I moved over and generating a <username>.000 profile. I'm not
on a domain, so netdom isn't an option either (as far as I understand
netdom).
 
I'm a little "late" getting back to this, but I have found an alternative to logout, login as user (sortof)

Basically, what I'm doing for now is
net user Joe Password /add (this creates a user account joe with a password of "Password" as a member of the users group
Then, I do a /runas user:Joe notepad.ex
I get prompted for Joe's password, enter it, then notepad opens (and at the same time, Joe's profile is created)

In essence, the runas acts as a login session. Maybe this will help someone else down the road, and I'll post more if I find a cleaner solution

Thanks for the response Roger
LarryO
 
Back
Top