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
Exchange Tabs missing in ADUC and Windows 7/ESM7
ADMT 3.0 example include file
SQL2005 lost 5000 records ? Possible to recover (file to download)
Expanding Fields in MS Access Report
Create batch .bat file that does not wait for an application
Windows 2000 theme
Get username and role c#.net
Powerpoint 2003. Excel embedded items returning an error
After Update in Access
go to record from main forms OrderID field