Re: Is it possible to change the local administrator password for multiple machines in a domain using WSH or VB Script?

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



Most helpful. I at least have a way forward now.

Thank you.

Shana

"Randy" <aggie07@xxxxxxxxxxxxx> wrote in message
news:Xngde.50742$hu5.31512@xxxxxxxxxxxxxxxxxxxxxxx
> LCC wrote:
> > How would one alter the local administrator password of multiple
> > workstations remotely using a WSH or Cscript. The users who log on, do
not
> > have admin privilages. Therefore the possiblity of using the "net use"
> > command in a batch file in the login script does not work either.
> >
> > I am a novice so please keep the explanation simple as possible.
> >
> > With Kind Regards,
> >
> > Shana
> >
> >
> You could use an ADSI script to change the password and then uses a WSH
> script that leverage the remote execution method shown below. The script
> reads a list of computer names from the c:\computer.txt file and
> executes the c:\pswrd.vbs script against each computer in the list from
> computer.txt. The pswrd.vbs file is created on the remote system and
> then executed. This is done in plan text, so its not the most secure
> approach.
>
> You can do a search on Google to find a ADSI script that will change the
> local administrator's password.
>
> ~Randy
>
> '---------8<------------------
> Dim fso, File, Controller, Remote, strComputer
>
> Set Controller = CreateObject(?WSHController?)
> Set fso = CreateObject(?Scripting.FileSystemObject?)
> Set File = fso.OpenTextFile(?c:\computers.txt?)
>
> Do Until File.AtEndOfStream <> ""
> strComputer = objFile.ReadLine
> Set Remote = Controller.CreateScript(?c:\pswrd.vbs?, strComputer)
> Remote.Execute
>
> Do While Remote.Status = 0
> WScript.Sleep 1000
> Loop
>
> WScript.Echo ?Finished script on ? & strComputer
> Loop
>
> File.Close
> WScript.Echo ?Finished all computers?
> WScript.DisconnectObject Remote
> WScript.Quit
> '---------8<------------------


.



Relevant Pages

  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • RE: WMI ExecQuery from Win32_NTEventLogFile in a Workgroup environ
    ... computer from which the script is being run? ... "urkec" wrote: ... as it correctly creates the .evt files for the local ... I have a script that runs on one node and copies files from all the remote ...
    (microsoft.public.scripting.vbscript)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... is a GC/AD server with DNS and DHCP for it's area. ...
    (microsoft.public.windows.server.sbs)
  • Re: wshremote not running script on remote computer
    ... "The script you deploy to the remote computer must not attempt to interact ... I do want to open a command window on a remote machine, ...
    (microsoft.public.scripting.vbscript)