Jump to content

Recommended Posts

Posted

Hiya

Long time lurker... first post :rolleyes:

I'm trying to make an unattended XP Home CD. I was having trouble with logging on automatically using AutoLogon=Yes in winnt.sif, then realised that XP Home doesn't normally allow you to logon with the "Administrator" account.

So now I'm trying the method of adding a user account with net user, then changing the Registry setting to logon automatically with that user account.

I have a batch file called useraccounts.cmd which is called from cmdlines.txt. It looks like this:

net user tempuser tempass /add

net localgroup Administrators tempuser /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT

Trouble is, the user "tempuser" is not added to the Administrators group - it remains a "Limited User". That means my main batch file does not run when he logs on. I inserted a Pause command to check what was going on, and the system gives an error 1317 "the specified user does not exist" after the net localgroup command, even though the net user command completes successfully!

And ideas? :)

Cheers

eeark!


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