Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

UserLastLogon - In a txt file

$
0
0

Hi All,

I am trying to get Users Last Logon using a test file in which I have users SAM accounts

Below is my script-

----------------------------------------

import-csv users.csv | Get-QADUser -id {$_.csvColumnName} | select name,LastLogonTimestamp|
 export-csv users1.csv

-----------------------------------------------

But this is not working. Can somebody help


Viewing all articles
Browse latest Browse all 8411