unable to sucessfully run the change local administrator script
- From: "davisr65" <davisr65@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 16:01:02 -0700
I copied a script from "The Scripting Guy from microsoft technet's website
that when executed, will change the local admin password of all pc's in an OU
the following is the script:
Set objOU = GetObject("LDAP://OU=RAD, DC=vehma, DC=com")
objOU.Filter = Array("Computer")
For Each objItem in objOU
strComputer = objItem.CN
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator")
objUser.SetPassword("test123")
Next
The following message appears when i run it from a Domain controller:
Line 5
char 5
error: the network path was not found
code: 80070035
source : (null)
thanks
.
- Follow-Ups:
- Re: unable to sucessfully run the change local administrator script
- From: Torgeir Bakken \(MVP\)
- Re: unable to sucessfully run the change local administrator script
- From: joshelson
- Re: unable to sucessfully run the change local administrator script
- Prev by Date: Re: Returning Dial-up Connections
- Next by Date: ScriptEngine Error in Windows 2003
- Previous by thread: Function not working when called
- Next by thread: Re: unable to sucessfully run the change local administrator script
- Index(es):
Relevant Pages
|