Launching "Change password" - window from VB script

Posted on 2007-08-02
Last Modified: 2010-04-16

I'm working on my company's loginscript  and in some instances with VPN remote users we need to have the user change their password if its expired before the script proceeds.

How is it possible to show the "change password" prompt without the user pressing ctrl-alt-del and choosing the change password window? I'd hate to have the users greeted with a cmd-prompt where they would enter the new password so I'd like them to see the 'official' windows change password prompt.

Preferrably the solution would be a VB script command(s).

Thank you for your interest.

- Luke Oliv
Question by:LukeOliv
    LVL 65

    Expert Comment

    It does not appear to be possible to do this.  The user must manually press CTRL + ALT + DELETE to invoke the "change password" dialog.  This is a security measure of Windows itself that it must be done physically via the keyboard.

    So, if you know that the password has expired, doesn't that ask them to change it when they log in anyway?  Or, if you know the password has expired, you may only be able to prompt them to press CTRL + ALT + DELETE and click Change Password.



    Author Comment

    Thanks Rob,

    The way the script works with VPN is quite special and Windows will not bring up the password expired prompt.

    A prompt asking the user to perform the operation might be a possibility but rather would have the "change password" prompt to pop up.

    - Luke
    LVL 65

    Accepted Solution

    I have also read though, that to change the password via any other means that a user initiated sequence, must be done via a domain administrator......

    What happens if the password *has* expired?  They just can't log in, and they have no idea why?  I take it that they log into Windows with a local user account, and then they store their credentials in a VPN connection string of some sort.

    Maybe you need to monitor the expiration date as they log in, and then via a log in script, continue to remind them that their password is going to expire soon.



    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now