Public Folder Query


i trying capture information in single command from:

get-publicfolder
get-publicfolderstatistics

using following command. i'm struggling getting replicas have in bold.

get-publicfolderstatistics "\intern" -server mail02-bh | select-object name,folderpath,@{label="replicas";expression={(get-publicfolder $_).replicas}},itemcount,totalitemsize,creationtime,lastaccesstime

any ideas on i'm doing wrong?

very strange, using -join for?

i'm joining array that's returned single string:

ps c:\scripts\powershell scripts\misc testing\12-3-2014> get-publicfolderstatistics '\scanning' |      get-publicfolder |         select -expandproperty replicas  exchange-pfdb1 exchange-pfdb2  ps c:\scripts\powershell scripts\misc testing\12-3-2014> (get-publicfolderstatistics '\scanning' |      get-publicfolder |         select -expandproperty replicas) -join ','  exchange-pfdb1,exchange-pfdb2


don't retire technet! - (don't give yet - 13,085+ strong , growing)



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607