My domain is 2012 R2, I have 2 DC's. I am trying to write a script to find inactive users on my network. I am using get-aduser and calling the LastLogonDate. However no matter what script i use i have several users that come up with the LastLogonDate blank.
I have checked both DC's and they both have several users that have blank LastLogonDate. Do you have any idea why this would be or is there another way to find inactive users that i am not seeing?
Thanks for your help