Re: Encrypted password in script
- From: "Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Mar 2006 09:03:23 -0600
Hi,
First, you can change the password remotely with a VBScript program. Just
bind to the local administrator user object with the WinNT provider and use
the SetPassword method. This assumes sufficient permissions - you Domain
account must be a member of the local Administrators group. By default, the
group "Domain Admins" is a member of the local Administrators group, so all
members of "Domain Admins" should be able to do this. A script I have used
is similar to:
strComputer = "WST345"
Set objLocalUser = GetObject("WinNT//" & strComputer &
"/Administrator,user")
objLocalUser.SetPassword "xyz123"
Second, you can use a StartUp script (configured in Group Policy) to change
the password. Startup scripts run with System privileges on the local
computer. Of course, the password would be exposed.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
"McKirahan" <News@xxxxxxxxxxxxx> wrote in message
news:vcydnbVxV-Y3sJHZ4p2dnA@xxxxxxxxxxxxxx
"Richard Waal" <RichardWaal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B2F60365-A0FE-4D14-AD7B-16E7EFB1EABC@xxxxxxxxxxxxxxxx
Hi McKirahan,ScriptPW
First of all, thank you for your quick response. Unfortunately, the
COM object will not solve my problem (unless I misunderstand its use). AsI
read the Scripting Guys blog, the ScriptPW utility will only prevent thebecause
password from being visible on screen, while I type it. In my situation,
I
create a password and embed it in the scriptfile. This is necessary
the script will be configured in a Group Policy, and will function as aStart
up script. All client computer must have the same admin passwordconfigured.
Any suggestion in how to approach this?
[snip]
Sorry, I'm not a SysAdmin. Here are some ideas for you:
Is this just a one-shot effort (to "change the password of the local
administrator account on client computers")?
If so, couldn't the login script delete itself after running?
Or, if the login script doesn't reside on the client computer,
couldn't it retrieve the new password from a file
through a script that only allows one access per workstation.
.
- References:
- Re: Encrypted password in script
- From: McKirahan
- Re: Encrypted password in script
- From: McKirahan
- Re: Encrypted password in script
- Prev by Date: Re: MySQL to SQL
- Next by Date: Re: MySQL to SQL
- Previous by thread: Re: Encrypted password in script
- Next by thread: Re: Encrypted password in script
- Index(es):
Relevant Pages
|
|