locked
Users script RRS feed

  • General discussion

  • Is there a way to make a script that would show me  list of all the local users and there password expiration dates and things like that? Like if I wanted to know when a list of users' passwords were going to expire or when a user was created and if their account expires?
    • Changed type Bill_Stewart Friday, January 26, 2018 3:26 PM
    • Moved by Bill_Stewart Friday, January 26, 2018 3:26 PM This is not "scripts on demand"
    Monday, December 11, 2017 10:09 PM

All replies

  • Is there a way to make a script that would show me  list of all the local users and there password expiration dates and things like that?

    Sure. Open a text editor, type in the script, save it, then run it.

    Please read this first:

    This forum is for scripting questions rather than script requests


    -- Bill Stewart [Bill_Stewart]

    Monday, December 11, 2017 10:43 PM
  • Thanks so much for that link!
    Monday, December 11, 2017 10:52 PM
  • There are scripts for that in the Gallery.


    \_(ツ)_/

    Monday, December 11, 2017 11:41 PM
  • This is built into PowerShell V5 W10 and later.

    get-localuser|select name, PasswordExpires

    For earlier versions download from OneGet or NuGet


    \_(ツ)_/


    • Edited by jrv Tuesday, December 12, 2017 1:01 AM
    Tuesday, December 12, 2017 1:01 AM