You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script used to grab the last logon time in AD for servers.
This is good to see which machines are potentially gone without the proper cleanup being done.
Note: the line with lastlogon has an additional ToString method which formats the output in a specific way. Feel free to modify it the way you want it.