Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Enabling Admin account and changin pw via batch.  (Read 2200 times)

0 Members and 1 Guest are viewing this topic.

juppe

  • Guest
Enabling Admin account and changin pw via batch.
« on: February 13, 2007, 12:24:00 PM »
When imaging a new machine i have to enable teh administrator account and change the password. Is there a way i can create a script to do both of these tasks?

THanks,
Juppe

Dilbert

  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Re: Enabling Admin account and changin pw via batc
    « Reply #1 on: February 13, 2007, 10:37:50 PM »
    THE administrator account? Or one that you see in normal mode with administrator privileges?

    If it's the former, it shouldn't have a password, and it should be enabled by default. WinXP does this in case you forget your password or if a virus destroys your ability to log in. No need for a script.

    If it's the latter, I suggest the DOS command: "net [user] [password]" without the quotes, replacing user with the name of the login, and replacing password with the chosen password.
    "The geek shall inherit the Earth."

    juppe

    • Guest
    Re: Enabling Admin account and changin pw via batc
    « Reply #2 on: February 14, 2007, 06:27:26 AM »
    I am doing this from a corporate image that we load and we have to go in and manually enable the Administrator account and then reset the password. I just thought it would be easier to just run a script to do it and put it in startup or runonce.