Microsoft
Software
Hardware
Network
Question : Exchange 2007- Powershell Query
I would like to create a query showing users Title and name. The following works:
Get-User -Filter { Department -like '*IT' }
But it doesn't show the title of the user.
So i created this query but it doesn't work:
"Get-User -Filter { Department -like '*IT' } Format-List Name, Title"
[PS] C:\Windows\System32>Get-Us
er -Filter { Department -like '*IT' } Format-List
Name, Title
Get-User : A parameter cannot be found that matches parameter name 'Format-List
'.
At line:1 char:9
+ Get-User <<<< -Filter { Department -like '*IT' } Format-List Name, Title
Any ideas? Thanks in advanced
Answer : Exchange 2007- Powershell Query
You're missing a pipe character.
If you change your command to
Get-User -Filter { Department -like '*IT' } | Format-List Name, Title
...it should do exactly as you are expecting it to.
-Matt
Random Solutions
SQL String error. 'Too few parameters. Expected 1.'
Replace SBS Server 2003 SATA RAID hard drives with bigger ones
How do I convert a string with commas into a double?
cannot delete shared calendar items in OWA exchange 2007
How to open pdf in a new browser without save option
vb.net - if string
Excel: Conditional formatting checking for unequal cells in portions of 2 wksts
WSUS - Missing update icon to apply updates
Access SQL Query Question
button event not firing in repeater control