Link to home
Start Free TrialLog in
Avatar of Terellion
TerellionFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Last Logon Date of Machines

Hi there, I have a list of machines in a CSV and i'd like to import the CSV into powershell and then add a column with a list of last logon dates from Active Directory for these machines and output to a new file. Is this possible?

Thanks so much!
Avatar of plusone3055
plusone3055
Flag of United States of America image

Here is a step by step tutorial for what you are asking for with visual aids and code :)
 
Get Active Directory user account last logged on time (PowerShell)
http://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-user-246f17c7
Avatar of Terellion

ASKER

Hi there, thats for user accounts :( Please assist with this, i tried importing them using that link but it said they all didn't exist even though they do. Thanks
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial