Page 1 of 1 1
Topic Options
#35746 - 2003-01-28 03:13 PM change password
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]

[ 28. January 2003, 16:17: Message edited by: pber ]

Top
#35747 - 2003-01-29 02:31 AM Re: change password
Bryce Offline
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
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
#35749 - 2003-01-29 02:26 PM Re: change password
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
pber

Just to add :

CTRL ALT DELETE is a key-Combination that can't be send (At least with KiXtart)

J.
_________________________



Top
#35750 - 2003-01-29 03:37 PM Re: change password
Bryce Offline
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
#35751 - 2003-01-29 04:28 PM Re: change password
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sending CAD is no small feat, but to launch a Control Panel Applet is a cinch. There are several ways to do this.

The cheap and dirty way is:
Shell 'control nusrmgr.cpl'

The more elegant way is with RunDLL32.exe as follows:
Shell 'Rundll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl'

With RunDll32, there are additional paramenters that can be passed. STFW for syntax and examples.

Here's one example:
http://www.thescarms.com/VBasic/rundll.asp
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#35752 - 2003-01-29 04:29 PM Re: change password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
HA!

I knew i had this lying around someplace!!

GuiPassChange

Bryce

Top
#35753 - 2003-01-29 04:30 PM Re: change password
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
HA! Bryce is back!

Welcome back Bryce!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#35754 - 2003-01-29 07:17 PM Re: change password
Anonymous
Unregistered


Thanks guys...
Top
#35755 - 2004-07-27 04:49 PM Re: change password
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 Offline
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
#35757 - 2005-03-02 08:03 PM Re: change password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
hmm when did that link stop working...

let me fix it.


Top
#35758 - 2005-03-02 08:45 PM Re: change password
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Yep... appears to not work for me as well Bryce.

http://www.isorg.net/other_scripts/password/GUIPassChange.kix

Top
#35759 - 2005-03-02 10:26 PM Re: change password
Bryce Offline
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
#35760 - 2005-03-03 02:19 AM Re: change password
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Does that mean that only two years ago you were still in the GOTO-camp?
_________________________
There are two types of vessels, submarines and targets.

Top
#35761 - 2005-07-18 08:14 PM Re: change password
scwd Offline
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 Offline
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
#35763 - 2005-07-18 09:04 PM Re: change password
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Actualy you should start you're own thread about this and not dig up an oldie.

If you are running AD you might want to take a look at this:
http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_ipwb.mspx
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#35764 - 2005-07-19 05:04 AM Re: change password
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
And in order to force a passowrd chaneg, just set teh "Change password at next login" property in the user manager for the specific account or via script on all accounts.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.072 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org