Re: Administrator Passord

From: Torgeir Bakken (Torgeir.Bakken-spam@hydro.com)
Date: 09/11/02


From: Torgeir Bakken <Torgeir.Bakken-spam@hydro.com>
Date: Wed, 11 Sep 2002 19:21:49 +0200


Thane wrote:

> We would like to change the Administrator password on the
> Windows 2000 PC's. I have seen it been done with scripts
> before and I'd like to know if anyone knows how to do it.
> We are running a Domain and can it be done with logon
> scripts. Thanks for your help.

If your users are not local admins, this is not possible to do from a login
script (unless you buy 3rd party RunAs solutions).

In that case, you can connect to the computers remotely. Here are some
alternatives (all is command line except 7):

1)
Changepw from http://www.joeware.net
(set passwords on accounts on remote domains or machines)
http://home.earthlink.net/~joewarenet/win32/zips/Changepw.zip

2)
CryptPwd.exe (local and remote)
http://www.jsiinc.com/dl/cryptpwd.zip
http://www.jsiinc.com/suba/tip0300/rh0349.htm

3)
"A better method for changing the local Administrator password on all your
workstations, without traveling"
Tip 2501 at http://www.jsiinc.com/reghack.htm

4)
NETUSER.EXE by Matt Bobowski (local and remote)
http://www.jsiinc.com/dl/NETUSER.EXE

5)
CUsrMgr.exe, in MS Resource Kit (local and remote)

6)
You can use the "NET USER" command:
To change the password to be 'newpw' on an existing user 'administrator':

net user administrator newpw

combine it with the free psexec.exe to remotely change the password:

PsExec
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

7)
DCPC (DC PasswordChanger, free, looks like it has a GUI)
http://www.danish-company.com/
  (look under Tools)

--
torgeir


Relevant Pages

  • Re: Remote Computers / Users and Scripts
    ... My remote users connect to my Domain via windows 2003 RAS VPN. ... When they first turn on the computer there are Group Policy scripts bound to ... Some times these startup scripts run for a very long time, ...
    (microsoft.public.windows.server.active_directory)
  • Regarding a selection for mobile code/scripting language
    ... reasonably efficient robustness for administration and security functions. ... of the framework completed as described in my "Treatise on Informational ... Fun stuff like remote registry control, remote program execution, ... I want to have lots of mobile scripts that perform generalized ...
    (Vuln-Dev)
  • RE: Connecting to remote servers with scripting object
    ... Prerequisite to running remote scripts. ... Remote WSH, which is a new technology included in WSH 5.6, provides the ... use Poledit.exe on the server. ...
    (microsoft.public.windows.server.scripting)
  • Re: Logon Scripts Acrossed VPN
    ... Scripts are one of those policies that don't process if a GP slow link is detected, so that may be what's happening for your remote sites. ... You can override this behavior by enabling the policy for those remote computers under Computer Configuration\Admin. ...
    (microsoft.public.windows.group_policy)
  • Batch and password access depending on hosts
    ... I am trying to add secure shell to a system where there are a lot of scripts ... to remote hosts - these are called from applications and cron jobs which use ... Fortunately the rsh-ing is just between a small number of "core" machines. ... But running two sets of sshd daemons seems a bit messy. ...
    (comp.security.ssh)