Powershell scripts to administer user password expiry

  • Status Closed
  • Budget £20 - £250 GBP
  • Total Bids 2

Project Description

Three PowerShell scripts required for a password security project. To run on Windows Server 2003 R2 in a domain context.

All errors to be logged to std err. There's quite a bit of sharing between the scripts, so hopefully this should be fairly quick and easy to do.

1) list to STDOUT all users (optionally in group) - username, full name, email address,latest password reset date (pwdlastset), in tsv format ordered in ascending order, oldest pwdlastset first

ListPasswordLastSet [-group GROUP]

2) Check password expiry notifications

Iterate users in a group. Compare for each their latest password reset date (pwdlastset) to today's date. If the difference in days >=max-days argument, then list the username, full name, email address and latest password reset date to std out in tsv format. If mesgsubject and mesgbodyfile are specified, also email the user a set message with subject mesgsubject the text contained in a text file mesgbodyfile

PasswordExpiryNotifications -group GROUP -max-days 76 [-mesgsubject "Subject line for email here"] [-mesgbodyfile "c:\examples\[url removed, login to view]"]

3) Expire passwords

PasswordExpiry -group GROUP -maxdays 90

Iterate users in a group. Compare for each their latest password reset date (pwdlastset) to today's date. If the difference in days >=max-days argument, then for each user list the username, full name, email address and latest password reset date to stdout in tsv format and then set pwdlastset to 0 (to force a password change on next login)

Get free quotes for a project like this
Awarded to:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online