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
VB.Net ERROR Message
Excelhow to convert number of days to weeks and days.
error with web site when it was moved from server 2003 to 2008
Excel Breaking Links
WebBrowser and Knowing when page is loaded
Count rows of table between two dates for value in text box
Error: Cannot convert string to float.....
NoActiveDesktop under LOCAL_MACHINE gets reset to value of 1 after reboot. If NoActiveDesktop key under LOCAL_MACHINE is deleted, it is recreated and assigned a value of 1.
How to write a query in Ms-Access 2007 to compare two fields in two tables?
Customizing MS Word 2007 RibbonX - ComboBox OnChange doesn't fire