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
Total cost formula using Excel
Cisco VPN client on VISTA
XBAP Application Resize
How do I find the max number in a field formatted as text?
Help! Why are my desktop icons changing to "no program" icon?
Adding user-input date range to query in MS Access
How to create links in access tables
Installing Exchange 2007 Managment Tools on Windows 7
New removable HDD not detected
File Conversion window opens when I try open a Word .doc