unable to sucessfully run the change local administrator script

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Two Questions, anyone have some good answers/ideas?
    ... Look for a script from http://cwashington.netreach.net that will enumerate ... If this post is viewed at a non-Microsoft community website, ... unless that website posts replies back to the original Microsoft forum. ... please direct all replies ONLY to the Microsoft public newsgroup ...
    (microsoft.public.win2000.active_directory)
  • Re: Using the DNSimport.vbs script
    ... >> to get it to work, but keep getting a failure when the script ... > If this post is viewed at a non-Microsoft community website, ... please direct all replies ONLY to the Microsoft public ... > Infinite Diversities in Infinite Combinations. ...
    (microsoft.public.win2000.dns)
  • Re: Using the DNSimport.vbs script
    ... > to get it to work, but keep getting a failure when the script ... If this post is viewed at a non-Microsoft community website, ... please direct all replies ONLY to the Microsoft public newsgroup ... Microsoft MVP - Windows Server Directory Services ...
    (microsoft.public.win2000.dns)
  • Re: Group Policy applies to all OUs and it isnt linked to them
    ... > advisor, even after i have disabled the settings in the the gpo. ... machine start up script to make it easier on yourself. ... If this post is viewed at a non-Microsoft community website, ... please direct all replies ONLY to the Microsoft public newsgroup ...
    (microsoft.public.windows.server.active_directory)
  • Re: Tooltips ?
    ... DIV with a high zindex method works if script is enabled (about 90% ... The IE popup method works only in IE6 with script enabled. ... was to a publicly-posted website. ... They test it out in their browser, ...
    (microsoft.public.scripting.vbscript)