Get-ADUser -Filter * -Properties HomeDirectory,LastLogonDate | Select-Object Name, LastLogonDate, HomeDirectory
will cause the following to display
Name LastLogonDate HomeDirectory
---- --------------------- ---------------
CollinsP 11/12/2015 6:04:12 AM \\wisefaq.com\HomeDrive\CollinsP
SprouleK 19/12/2015 2:08:12 PM \\wisefaq.com\HomeDrive\SprouleK
ReithP 23/12/2015 8:45:54 PM \\wisefaq.com\HomeDrive\ReithP
How to output to a file?
Get-ADUser –Filter -Properties HomeDirectory,LastLogonDate | Select-Object Name, LastLogonDate, HomeDirectory | Export-CSV 'c:\temp\AllDomainUserNames.CSV'
This article seem familar? That will be because I wrote how to do this with Quest Active Server Roles Powershell Module, back in 2010.
The Microsoft page on Get-ADUser is here.