alex
2009-09-07 05:34:47 UTC
maybe the script runs under the logging-on user that does not have privilege
to change admin password
to change admin password
Hi Experts,
I want to change the local administrator password for every machine. I
have tried many time, but failed. After client machine restarted, the xp
will say the script has some erre at line 3, col 1 .the code maybe
8007007B
Code 8007007B - The filename, directory name or volume syntax is
incorrect
I did the following steps, but failed. The machine's local administrator
password was not changed.
Can you tell me why the line 3 has problem? Thanks.
1. Save the following scripts in a pwd.vbs file .
strComputer="."
Set objUser=GetObject("WinNT://" & strComputer & "/Administrator,user")
objUser.SetInfo
2. Select an OU, in its properties, select policy, new a group policy,
name it, click edit
3. In the following windows, select startup, click properties, click
Show Files¡, copy the script file (pwd.vbs) into this folder, click
Add¡,
4. Popup the following window, click Browse¡
5. Select pwd.vbs in this window, and click ok.
6. Run command ¡° gpupdate /force ¡° to refresh group policy.
7. After the machine restarted, the local administrator password will be
I want to change the local administrator password for every machine. I
have tried many time, but failed. After client machine restarted, the xp
will say the script has some erre at line 3, col 1 .the code maybe
8007007B
Code 8007007B - The filename, directory name or volume syntax is
incorrect
I did the following steps, but failed. The machine's local administrator
password was not changed.
Can you tell me why the line 3 has problem? Thanks.
1. Save the following scripts in a pwd.vbs file .
strComputer="."
Set objUser=GetObject("WinNT://" & strComputer & "/Administrator,user")
objUser.SetInfo
2. Select an OU, in its properties, select policy, new a group policy,
name it, click edit
3. In the following windows, select startup, click properties, click
Show Files¡, copy the script file (pwd.vbs) into this folder, click
Add¡,
4. Popup the following window, click Browse¡
5. Select pwd.vbs in this window, and click ok.
6. Run command ¡° gpupdate /force ¡° to refresh group policy.
7. After the machine restarted, the local administrator password will be