La consola muestra por debajo la opcion de Pshell para ejecutarla, con lo q la solucio n seria:
Get-ExchangeServer | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true} | parametros de consola
http://technet.microsoft.com/en-us/library/bb124926%28EXCHG.80%29.aspx
Working With the Search Results
Once you have a search which returns the results you need, you may want to convert those results into other formats, perhaps to use for reports or to provide information to others. PowerShell includes built-in cmdlets for re-formatting output data, and those can be used in conjunction with the Get-MessageTrackingLog cmdlet. For the ‘Recipients’, ‘RecipentStatus’ and ‘Reference’ properties it’s necessary to convert the data so that it appears in the output files.
To convert the results to CSV format you can pipe the search command to the Export-CSV cmdlet. This command will create a CSV file called C:\Temp\SearchResults.csv, exporting all the available fields:
This command will create a CSV file including only the timestamp, event ID, sender, recipients, and subject line:
Alternatively, to convert the results to HTML you can pipe the search command to the ConvertTo-HTML cmdlet. Use this command to export the results to an HTML file showing the timestamp, event ID, sender, recipients, and subject line:
El siguiente ling tiene un script muy bueno de como sacar una metrica del dia anterior:
http://www.simple-talk.com/content/print.aspx?article=681
Reporting on e-mail messages sent and received yesterday
No hay comentarios:
Publicar un comentario