Changing Local Admin PW not running on w2k pro
From: Hadi (HSukirman_at_hotmail.com)
Date: 03/13/04
- Next message: Steve Fulton: "Re: Token replacements in Files using WSH"
- Previous message: Stivie S.: "RE: Adding a printer script not working"
- Next in thread: Stivie S.: "RE: Changing Local Admin PW not running on w2k pro"
- Reply: Stivie S.: "RE: Changing Local Admin PW not running on w2k pro"
- Reply: Richard Mueller [MVP]: "Re: Changing Local Admin PW not running on w2k pro"
- Messages sorted by: [ date ] [ thread ]
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!
- Next message: Steve Fulton: "Re: Token replacements in Files using WSH"
- Previous message: Stivie S.: "RE: Adding a printer script not working"
- Next in thread: Stivie S.: "RE: Changing Local Admin PW not running on w2k pro"
- Reply: Stivie S.: "RE: Changing Local Admin PW not running on w2k pro"
- Reply: Richard Mueller [MVP]: "Re: Changing Local Admin PW not running on w2k pro"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|