En cours

Powershell scripts to administer user password expiry

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)

Compétences : Script Shell, Administration Système, Serveur Windows

Voir plus : powershell reset password, powershell password expiry, system err, std list c, std list, server scripts, first bit set, err login, all std list, powershell 2, std, shell scripts, change password, password list txt, administer, 2012 domain users, windows compare file, list ascending, user list, full name domain username, windows server 2012 domain, compare shell, windows server admin script, message user, domain expiry date

Concernant l'employeur :
( 0 commentaires ) Oxford, United Kingdom

N° du projet : #2368612

Décerné à :

arthurpalves

Good morning, I'm Windows and Unix SysAdmin and Developer with 4+ years of experience. I can do it for you. More details in your PMB.

40 £ GBP en 1 jour
(6 Commentaires)
2.9

2 freelance ont fait une offre moyenne de 45 £ pour ce travail

Drudina

Hi!I have extensive experience writing scripts on powershell.

50 £ GBP en 2 jours
(2 Commentaires)
2.6