WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Password Tips

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Changing Local Admin Passwords

Keywords:    passwords *UNKNOWN*

Question:

In Windows NT Environment:
  1. want to change the local administrator password on multiple workstations

  2. logging in as a domain admin with local admin rights, but the local administrator password is unknown.

  3. looking for ideas

Answer:

  1. wntChgPassword *might* do it with *UNKNOWN* for the old password. (Use *UNKNOWN* with the asterisks around it.) It should accept *UNKNOWN* as the old password field if you are logged on as Administrator.

    Give it a try. There seems to be mixed results with it.

  2. If *UNKNOWN* doesn't work, try:
    :resetAll 
    username=StrLower(AskLine("Reset ANY User's Password To 'hello'","Enter The User's Logon Name:",""))
    rslt=wntMemberGet(PDC,"Domain Users",username,@GLOBALGROUP)
    
    if ! rslt
       message("Unknown Logon Name","%username% Is Not A Valid Logon Name.")
       goto resetAll
    endif
    
    wntUserSetDat(PDC,username,"password", "hello")
    wntUserSetDat(PDC,username,"password_expired", 1)
    message("Password Reset","%username%'s Password Has Been Reset To 'hello'")
    return
    

  3. Or, try to use a list of known passwords to reset them.

  4. Or, use the wntGetUserDat command for changing passwords.

Article ID:   W13303
Filename:   Changing Local Admin Passwords.txt
File Created: 2001:01:23:09:11:26
Last Updated: 2001:01:23:09:11:26