Re: How can I change the admin password of all our XP PC's on the doma



Hi this is great, do I need to change anything in this script apart form the "testpassword"

I take it I can then add the script to the logon part of the doamin group policy?


"Simon" <Simon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:55FB500B-675B-426B-9E75-F3954A30DA2B@xxxxxxxxxxxxxxxx
try this as part of a logon/startup script:

strComputer = "MyComputer"
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "testpassword"
objUser.SetInfo

To make it more generic, you will need to set the script to get the pc's
computer name before trying to change the password.

"Cyborg" wrote:

Somehow many of our users know the local admin password for our XP machines,
is there a way to change this on all PC's to something else, like a group
policy?


.



Relevant Pages

  • Re: ADmin reset
    ... I did find this reference in Microsofts script center, ... objUser.SetPassword "testpassword" ...
    (microsoft.public.scripting.vbscript)
  • Re: ADmin reset
    ... I did find this reference in Microsofts script center, ... objUser.SetPassword "testpassword" ...
    (microsoft.public.scripting.wsh)
  • local Administrator password
    ... I'm using the code from script center to change local administrator password: ... objUser.SetPassword "testpassword" ... After executing the script i get message: ...
    (microsoft.public.windows.server.scripting)
  • Local Administrator password
    ... I'm using the code from script center to change local administrator password: ... objUser.SetPassword "testpassword" ... After executing the script i get message: ...
    (microsoft.public.windows.server.scripting)
  • Re: Automating password change
    ... All the machines are set up differently from each other ... > use telnet, others I can rlogin or remsh, and still others I can ssh. ... it would not be practical to try to write a complex script ... > to write a simple script to wrap around passwd that would run on each ...
    (comp.unix.solaris)