Tag Archives: passwords never expire

password never expires

<# This script find all the users whose passwords never expire and send a report to mail. Idit Bnaya #> Import-Module activedirectory $date=Get-Date $date1 = $date.ToShortDateString() $date2 = $date1.Replace("/","_") $FolderPath = ‘c:\temp’   Get-ADUser -filter * -Properties PasswordNeverExpires | where … Continue reading

Posted in PowerShell | Tagged , | Leave a comment