Changing Local Admin PW not running on w2k pro

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hadi (HSukirman_at_hotmail.com)
Date: 03/13/04


Date: Sat, 13 Mar 2004 02:06:07 -0800

This might be a very stupid question but I don't know how to solve this problem.

I would like to change the local Administrator password for all our clients from a log-in script. Our domain is w2k based and has a working AD.

In the script center I found the following script which I used as a basis:

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

I changed the strComputer to "." and it didn't work, then I tried the local computer name of the workstation I am using - which didn't work. I tried the full DNS name of it and it also didn't work.

My workstation is w2k SP4 and I always get an error message like:
SetPW.vbs(2, 1) (null): 0x80005000

I am running the script as a domain user who has full admin rights on that workstation.

What did I miss? Thanks is advance for the answers!



Relevant Pages

  • Re: Redirect computers to a specific OU by IP Address
    ... Getting the IP address of the workstation is easy if you are running the ... COMPLETELY lock them down until an admin put them into the right OU. ... I'm in the process of disabling computer accounts that have not been ... My biggest problem is that I just dont know where to start the script ...
    (microsoft.public.windows.server.active_directory)
  • Re: Redirect computers to a specific OU by IP Address
    ... Getting theIPaddress of the workstation is easy if you are running the ... script from the workstation. ... COMPLETELY lock them down until an admin put them into the rightOU. ... used for approx 180-240 days (as there is over 1000 computer accounts ...
    (microsoft.public.windows.server.active_directory)
  • Re: Me Too
    ... I did my testing of the script on my own XP ... Which could be tight on a server like SBS (though mine has never shown ... any service to take for a normal shutdown. ... this reg edit change made to a workstation would ...
    (microsoft.public.windows.server.sbs)
  • Re: Need to automate workstation tasks
    ... Microsoft Online Support ... |> workstation will be logged off unless the user performs some activity. ... | You would need to script that as you cannot trigger that by using Group ... | human solutions than taking several technical actions. ...
    (microsoft.public.windows.group_policy)
  • Re: Help with adding users to groups on an xp workstation
    ... I ended up posting a test version of my script and not the current ... group when running on a workstation would go away. ... intRow = intRow + 1 ... when you specify the DC and port, but that should raise an error. ...
    (microsoft.public.scripting.vbscript)