Sign in to follow this  
Followers 0
PeterF

Windows Change Password Screen

16 posts in this topic

Since Ctl Alt Del can not be scripted, does anyone know the utility (exe, cpl, etc) to activate the Windows Security Window (ctl, alt, del) in order to get into the change password screens? Thank You. PeterF

Share this post


Link to post
Share on other sites



HI,

Send("#l")

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

HI,

Send("#l")

So long,

Mega

On XP that just logs the user off and IIRC on 2K that has no effect at all.

P.S. srry atm i don't know of a way to do this but if i find one i will be sure to post it

Edited by SolidSnake

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

Since Ctl Alt Del can not be scripted, does anyone know the utility (exe, cpl, etc) to activate the Windows Security Window (ctl, alt, del) in order to get into the change password screens? Thank You. PeterF

Whaddya need the GUI for?

$RetCode = RunWait(@ComSpec & " /c net user " $user_name  $new_password)
If $RetCode = 0 Then
     MsgBox(64, "Success", "Successfully changed password on user: " & $user_name)
Else
     MsgBox(16, "Failed", "ErrorLevel " & $RetCode & " returned changing password on user: " & $user_name)
EndIf

If you are an admin, you can do this to the domain account by adding '/domain'.

Cheers! :D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

or if u want the window

Run("Control UserPasswords2")

Share this post


Link to post
Share on other sites

Whaddya need the GUI for?

I want to streamline the Change Password process for users needing to change both Novell and MS-Domain passowrds. It can be confusing and sometimes only the novell Password changes and the user doesn't realize it. You get the Change Passwordbutton through the Security window when you press Ctl Alt Del. Net User will only do the MS-Passwords. Same with the Control Pannel Users Screens. Thanks

Share this post


Link to post
Share on other sites

who solved problem this. i have user join domain, i need change password domain use Autoit.

Thanks all

Share this post


Link to post
Share on other sites

you could use my active directory udf to change the password.

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

you could use my active directory udf to change the password.

You can say more active directory udf to change the password.And I want get info day pw expires

Ex: when apear screen pw domain expries 14 day, i get value 14 day where in registry.

Thanks for help

Share this post


Link to post
Share on other sites

Please use function _AD_GetPasswordInfo to get all information about a users password. The function returns an array and element 9 contains the date/time when the password expires. You can use _DateDiff to calculate how many days before the password will expire.

Please see the example script _AD_GetPasswordInfo.au3 or the help file _AD_GetPasswordInfo.htm

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Please use function _AD_GetPasswordInfo to get all information about a users password. The function returns an array and element 9 contains the date/time when the password expires. You can use _DateDiff to calculate how many days before the password will expire.

Please see the example script _AD_GetPasswordInfo.au3 or the help file _AD_GetPasswordInfo.htm

Run Example: _AD_GetPasswordInfo

Error:

Include\AD.au3 (2989) : ==> Incorrect number of parameters in function call.:

$aAD_PwdInfo[10] = _Date_Time_SystemTimeToDateTimeStr($sAD_Temp2, 1)

$aAD_PwdInfo[10] = ^ ERROR

Share this post


Link to post
Share on other sites

And Run Example:

Example 1

; Queries the sAMACccountName and the password and tries to change the password.

User domain : myuser

Change pass errror box msg :

"return code - 2147352567 form Active Direc..."

Thanks Water

Share this post


Link to post
Share on other sites

$aAD_PwdInfo[10] = _Date_Time_SystemTimeToDateTimeStr($sAD_Temp2, 1)

$aAD_PwdInfo[10] = ^ ERROR

You need at least Autoit version 3.3.6.0 because there is a bug in previous versions of _Date_Time_SystemTimeToDateTimeStr.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

And Run Example:

Example 1

; Queries the sAMACccountName and the password and tries to change the password.

User domain : myuser

Change pass errror box msg :

"return code - 2147352567 form Active Direc..."

Thanks Water

Are you sure you have the permission needed to change the password of a user? Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Are you sure you have the permission needed to change the password of a user?

I haven't permission change password user. My user is one user domain,i can change my user domain with Ctl+ Atl + Del, and Change Password

Share this post


Link to post
Share on other sites

I don't think the COM interface makes a difference between your userid and the id of another user you want to change. So if you do not have the permission to change passwords you can't even change your own.

To be 100% sure I will have to investigate the subject.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0