I have a quick question that I hope someone can help me with. How can I
change the password of a local account on windows 2000. Any help is very
much appreciated.
Thanks,
Hi
From the local computer itself, or remotely?
If local, does the user that performs the operation have local admin rights?
--
torgeir
Thanks, :)
"Torgeir Bakken" <Torgeir.B...@hydro.com> wrote in message
news:3D811368...@hydro.com...
> "Torgeir Bakken" <Torgeir.B...@hydro.com> wrote in message
> news:3D811368...@hydro.com...
> > Jimmy wrote:
> >
> > > I have a quick question that I hope someone can help me with. How can I
> > > change the password of a local account on windows 2000. Any help is very
> > > much appreciated.
> >
> > From the local computer itself, or remotely?
> >
> > If local, does the user that performs the operation have local admin
> > rights?
>
> Just Local, and yes the user does have local admin rights.
Hi
Some alternatives:
=================================================
' *** Script start ***
sUser = "mini-strator"
sPwd = "1234"
Set oWshNet = CreateObject("WScript.Network")
sComputerName = oWshNet.ComputerName
Set oUser = GetObject("WinNT://" & sComputerName & "/" & sUser)
' Set the password
oUser.SetPassword sPwd
oUser.Setinfo
' *** Script stop ***
=================================================
You can use the "NET USER" command as well:
To change the password to be 'newpw' on an existing user 'administrator':
net user administrator newpw
You can run this with the Run metod in vbscript if you want
=================================================
DCPC (DC PasswordChanger, free, has a GUI)
http://www.danish-company.com/
(look under Tools)
=================================================
You can use IE from a vbscript to ask for a password, masking the input. When
the user clicks the OK button, the vbscript retrieves the password from IE:
Message-ID: <3D2C4D14...@hydro.com>
From: Torgeir Bakken (Torgeir.B...@hydro.com)
Subject: Re: window.open using a WSH or VB script
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-07-10 09:36:46 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3D2C4D14.A6603949%40hydro.com
--
torgeir