Change local admin PW
From: Stev379 (anonymous_at_discussions.microsoft.com)
Date: 04/30/04
- Next message: Pete Gomersall: "Re: Script Win Component Install/Uninstall"
- Previous message: pheonix1t: "Re: need help with script....peer review please!"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Change local admin PW"
- Reply: Torgeir Bakken \(MVP\): "Re: Change local admin PW"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 08:00:58 -0700
We need to email a script to some teleworkers to change
the local administrator password and give them a pop-up
for Success or Failure. How can error checking be enabled
to handle this? The script below is the only way I've been
able to get the password (newpassword) to successfully
change. I just need some error handling and I haven't got
the expertise down for that yet.
----------------
strComputer = "."
Set CPU = GetObject("WinNT://" & strComputer & ",Computer")
Set objuser = CPU.GetObject("User", "Administrator")
dim wsh
Set wsh = Wscript.CreateObject("Wscript.Shell")
objUser.SetPassword "newpassword"
objUser.SetInfo
-----------------------
Thanks for any help!
-Steve
- Next message: Pete Gomersall: "Re: Script Win Component Install/Uninstall"
- Previous message: pheonix1t: "Re: need help with script....peer review please!"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Change local admin PW"
- Reply: Torgeir Bakken \(MVP\): "Re: Change local admin PW"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|