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
Install Windows Server 2003 on laptop
Form with Subform, How to check if child record(s) within a subform exists.
Ole in-place at resize loosing focus
Reverting to SQL Server Express
How to do an insert into a multi-value column
How can I use VB to tab my cursor to different text boxes?
Select inverse or using Control to select and DE-select multiple cells.
Add or Remove Programs Empty
VIEWING INTERNAL WEB SITES WITH FOREFRONT TMG CLIENT
Deletion of record - But HOW ? Very odd.