default output for ps command

when I run this ps
Get-Mailbox -resultsize unlimited | Where { $_.Exchangeversion -like "*0.20*" }

the default headers are:

Name                      Alias                ServerName       ProhibitSendQuota

why?

I thought I would need to add

Get-Mailbox -resultsize unlimited | Where { $_.Exchangeversion -like "*0.20*" } | displayname, servername

thanks


August 26th, 2015 9:33am

Seems that that just are the default output settings for Get-Mailbox

you can see all when you add "| fl" at the end and then choose for yourself which one you will need with "| select displayname, Exchangeversion, <propertyname you like to see>"


  • Marked as answer by totalnet32 17 hours 18 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 9:40am

cmdlets usually have a default set of properties that are displayed. you can pipe over to Select * to view all of them, or Select <propertyname>, <propertyName> to get the ones you want to see
August 26th, 2015 9:41am

Seems that that just are the default output settings for Get-Mailbox

you can see all when you add "| fl" at the end and then choose for yourself which one you will need with "| select displayname, Exchangeversion, <propertyname you like to see>"


Adding FL does not fix anything.  It just changes the way the default list is displayed.
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 12:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics