Re: Resetting Local Admin password

From: JP Martinez (pierre_at_perutek.com)
Date: 09/08/04


Date: Wed, 8 Sep 2004 10:49:27 -0400

Thanks - I will give it a try.

-Pierre

"Stuart Langston" <StuartLangston@discussions.microsoft.com> wrote in
message news:CF8F5A45-4003-499C-B561-DDE94E00DFA8@microsoft.com...
> This should work. The list of machines comes from the workstation.lst
file.
> Obviously replace the administrator account name and password to your
> requirements
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set oShell =CreateObject("Wscript.Shell")
> Set objFile = objFSO.OpenTextFile("c:\password\workstation.lst", 1)
> Do Until objFile.AtEndofStream
> strComputer = objFile.Readline
> Err.Clear
> Wscript.Echo "Processing: " & strComputer
> On Error Resume Next
> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,user")
> objUser.SetPassword "requiredpassword"
> objUser.SetInfo
> Loop
>
>
> "JP Martinez" wrote:
>
> > Hi I would like to be able to reset the local admin password in various
> > remote file servers and workstations in the Enterprise.
> >
> > Could someone point me to a sample script to accomplish this?
> >
> > Any help will be appreciated
> >
> > -JPierre
> >
> >
> >



Relevant Pages

  • Re: Where should security exist?
    ... locking down their workstation as a violation of "academic freedom". ... all of our users are admins of their local machines so they can install ... > hardening security on workstations in an "enterprise", ...
    (microsoft.public.win2000.security)
  • Re: BAT file to retrieve Registry Setting
    ... workstations are the infamous Windows 95 with a few Windows 98s. ... I am not sure if these machines have reg.exe on them. ... I plan to setup a BAT file accessible on the network for each person to run ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Remotely changing admin group membership on clients
    ... membership of the group and set it to what you want. ... This will add the specific group but will only work when the machines are ... > workstations in the domain. ... > method to be able to place a domain user account or global group in the ...
    (microsoft.public.win2000.security)
  • Re: Q329873, problems with DCs machine account, need help!
    ... Your best path is to disjoin and then rejoin the workstations to the domain. ... The NETDOM command would do most of the same functions and you may as well ... > couple Mac OSX 10.3 machines to participate in AD. ... > server, so that's obviously not good enough. ...
    (microsoft.public.win2000.active_directory)
  • Re: Fedora Makes a Terrible Server?
    ... add-ons on the enterprise OSes, if you are in a fast moving enterprise environment RHEL won't work. ... enterprise environments, but most would argue there you should probably lock everything down so tight that few kernel updates/userspace are even required for anything, the problem is in an environment were you are constantly having to bring in new hardware that does not work on the older release, where you cannot wait 6 months for RHEL to catch up. ... You typically bring in around a large enough set of new machines at a time any only update the pieces required to support that new machine, and then you run some test to validate that it gives the correct answers for various jobs. ...
    (Fedora)