I have a powershell cmdlet that will show me all the users who are enabled and don't have the password never expires option checked and when their passwords will expire.
Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties “DisplayName”, “msDS-UserPasswordExpiryTimeComputed” |
Select-Object -Property “Displayname”,@{Name=“ExpiryDate”;Expression={[datetime]::FromFileTime($_.“msDS-UserPasswordExpiryTimeComputed”)}} | Sort-Object -Descending expirydate
Is there any way to have a report in lansweeper do this?