I’m a total Noob at scripting…
I’m a total Noob at Powershell, Please Forgive me.
This is one of the suggested sentences to call Password Expired dates by another forum user. (@{Name=“ExpiryDate”;Expression={[datetime]::FromFileTime($_.“msDS-UserPasswordExpiryTimeComputed”)}} )
I’ve tried it and tweaked it’s -Searchbase paramaters and it is working.
However I would like to call Expiry date from “The current date” and checked against msDS-UserPasswordExpiryTimeComputed for expired passwords in the past 7 days and coming 7 days.
Can somebody recommend documentation on how to pipe Get-Date +/-7 and check against msDS-USerPasswordExpiryTimeComputed?