Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17



Posted on 2011-02-15
Medium Priority
Last Modified: 2012-05-11
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?
Question by:suelizy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 27

Expert Comment

ID: 34901597
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


Author Comment

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

LVL 27

Accepted Solution

KenMcF earned 2000 total points
ID: 34907153
Try this one, I have had problems trying to copy code in the past from here. Check for spaces at the end of the lines.

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

Open in new window

LVL 74

Expert Comment

by:Glen Knight
ID: 35145688
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.

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
New style of hardware planning for Microsoft Exchange server.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question