#35746 - 2003-01-28 03:13 PM
change password
|
Anonymous
Anonymous
Unregistered
|
Is is possible to force a user to change password via kix. (My XP machines don't get notified of password expiry in a NT4 domain.)
Using this doesn't work...(CTRL-ALT-DEL - then Alt C for change password) sendkeys("^(~({DEL}))") sendkeys("~(C)")
any ideas? ![[Confused]](images/icons/confused.gif) [ 28. January 2003, 16:17: Message edited by: pber ]
|
|
Top
|
|
|
|
#35747 - 2003-01-29 02:31 AM
Re: change password
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
Since we are dealing with windows XP users here, you can use the built in ADSI tool set.
code:
$user = getobject("WinNT://@domain/@userid") $user.changepassword($oldpassword, $newpassword)
you will have to prompt your users for their old and new password's....
|
|
Top
|
|
|
|
#35748 - 2003-01-29 02:24 PM
Re: change password
|
Anonymous
Anonymous
Unregistered
|
Is there no way of bringing up the default change password dialog? That's what I was trying to do with the CTRL-ALT-DEL then ALT-C... or even better some DLL call like: Shell "rundll32.exe user32.dll,LockWorkStation"
Anyhow, I'll see if I can implement the code you gave me. Thanks.
|
|
Top
|
|
|
|
#35750 - 2003-01-29 03:37 PM
Re: change password
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
the short answer is no, you can't bring up the change password box all that easy....
the long answer is... you can recreate your own change password type dialog box.
1. you could use kixforms.dll while this would be the best looking, you will run into problems with having to get the dll installed on all of the computers.
2. you can use IE to do this as well.... hold on... i got some IE code......... here is just a simple UDF that will prompt for a password, not change it mind you...
|
|
Top
|
|
|
|
#35752 - 2003-01-29 04:29 PM
Re: change password
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
HA!
I knew i had this lying around someplace!!
GuiPassChange
Bryce
|
|
Top
|
|
|
|
#35754 - 2003-01-29 07:17 PM
Re: change password
|
Anonymous
Anonymous
Unregistered
|
Thanks guys...
|
|
Top
|
|
|
|
#35755 - 2004-07-27 04:49 PM
Re: change password
|
Anonymous
Anonymous
Unregistered
|
Bryce,
Can you repost your guipasschange.kix? The link to your last post is dead??? Thanks.
|
|
Top
|
|
|
|
#35756 - 2005-03-02 07:58 PM
Re: change password
|
Shaggydog
Fresh Scripter
Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
|
Wondering if anyone got that link working, or if it's on a different site?
|
|
Top
|
|
|
|
#35758 - 2005-03-02 08:45 PM
Re: change password
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
|
|
Top
|
|
|
|
#35759 - 2005-03-02 10:26 PM
Re: change password
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
ohh dear!!
i just took a look at it... and... it has a goto in it!! 
now i must rewrite the thing!
|
|
Top
|
|
|
|
#35761 - 2005-07-18 08:14 PM
Re: change password
|
scwd
Lurker
Registered: 2005-07-18
Posts: 1
|
I am in need of a script to force users to change their password at the next logon. It looks like you used to have a link to something like this - but it is no longer active. Can you please point me to something that will do this job?
|
|
Top
|
|
|
|
#35762 - 2005-07-18 08:49 PM
Re: change password
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
things got moved around on my server..
guipassprompt can be found in its current folder
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|