On Fri, January 13, 2006 2:43 pm, Thane Sherrington (S) wrote:
> At 01:01 PM 13/01/2006, JRS wrote:
>
>> http://www.ss64.com/nt/netuseroptions.html
>>
>>
>> Net user options
>>
>
> This is what I'm using, but it doesn't appear to do what I want. I'd
> like to be able to create users and home folders from the command problem,
> copy specific files to the home folders, and be done, but it doesn't work.
> I use
> net user Fester /add /homedir:Fester
>
> That creates the user, but only as a limited user, so I have to manually
> modify the user in Control Panel, and it doesn't create the user folder.
>
> So then I added a line in the back file to create the user folder:
> md "c:\documents and settings\Fester"
>
> Then I log in as that user (btw Windows doesn't create the user's folder
> until you log in as that user) and it creates a new folder called
> Username.ComputerName or Username.000, etc, so I have to copy the files
> over again.
>
> There must be a way to do this from the command prompt.
One possibility is to
runas /profile /user:<newuser> "cmd.exe /c exit"
the newly created user with the /profile to create the profile directory
and the registry entries for it. Check runas /? at an XP command prompt
for more details.
Jamie
--
Jamie Furtner [EMAIL PROTECTED]
"I aim to misbehave"
- Malcom Reynolds (Serenity movie)
"It's not safe...
"For them."
- River Tam (Serenity movie)