Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell - Last password change

$
0
0

Hi There all

I am new to this whole Powershell stuff, so please bare with me.

I have been tasked to get a list of all users in our OU, and when their passwords were last changed. I thought this would be simple, but i am wrong. My results are so wonky. I get about 60 results (out of 700+) that tell me when the password was last changed, but the rest of the results are blank. I am very confused about where to go from here. Why are some of the results blank? At first i thought it was users who have disabled accounts, but it is not just them, it is most of the company along side this. There is no common denominator, it is not only admins who have their last changed passwords on there. Not all in the same groups, nothing is similar. It is very strange. The script is below. Hopefully someone can help:

get-aduser -filter * -properties...


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>