Link to home
Start Free TrialLog in
Avatar of suelizy
suelizyFlag for United States of America

asked on

get-logonstatistics

I want to get a list of client versions for my users.  This is getting me close to all of the data that I want:  Get-LogonStatistics e144534| ft windows2000account, databasename, clientversion -autosize

But I would really like to include the company field.  I know it comes from the get-user command, but i cannot figure out how to combine.

Can anyone help?
Avatar of KenMcF
KenMcF
Flag of United States of America image

You can do something like this.
$users = get-user 
$users | %{Get-LogonStatistics -identity $_.samaccountname | Select `
windows2000account, databasename, clientversion,
@{n='Compnay';e={ (get-user $_.Windows2000Account).company }} }

Open in new window

Avatar of suelizy

ASKER

Thanks KenMcF.  When I run this the company field is blank in the results.  Do you have any ideas for that?



ASKER CERTIFIED SOLUTION
Avatar of KenMcF
KenMcF
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
Avatar of Glen Knight
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.