Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Need Script to change The Password

Reply
Thread Tools Display Modes

Re: Need Script to change The Password

 
 
Al Dunbar
Guest
Posts: n/a

 
      09-21-2009

"irsh19" <> wrote in message
news:...
>
> Hi Forum,
>
> Need Help In changing the password as per Below Scenario,
>
> I Have created a domain user account with name "test" and i have
> created another user account "test" in the local computer. Now i need a
> script which will change the password of local computer user account
> when ever the domain user account password gets changed & i need this
> script to run through group policy.


I don't believe this to be possible for a number of reasons.

The script would need to be run by an account that was privileged enough to
be able to:

- set the password on the local account. - fairly simple, could be a domain
account.
- find out when domain account's password has been changed. - would need
sufficient domain privs to access the password last set attribute.
- find out what the password of the domain account is.

The last one is the issue - I do not know how to write a script that I can
run on my own account to tell me what my password is. And that is a good
thing.

Alternately, you could implement a script that accepts a new password and
applies it to the domain and the local account. Not a good idea, though, as
the script could possibly be hacked to save that password somewhere...

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for last password change date Bettie Claxton Active Directory 3 10-31-2008 09:19 PM
change local admin password through script Robert Scripting 3 06-30-2006 04:43 AM
Change password Script Diogo Mello Scripting 0 09-05-2003 12:21 PM
Change Service Password Script Chris Kernaghan Scripting 0 09-02-2003 09:33 AM
Re: User cannot change password script Richard Mueller [MVP] Scripting 0 07-13-2003 03:45 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59