Get Rules Informations :
- get-rule | select-object @{Name="MP";Expression={ foreach-object {$_.GetManagementPack().DisplayName }}}, @{Name="MP Version";Expression={ foreach-object {$_.GetManagementPack().Version }}}, Name, DisplayName, XmlTag, Enabled, Category |
sort-object -property MP | export-csv "C:\Allrules-MyMgtGroupName.csv"
- get-monitor | select-object @{Name="MP";Expression={ foreach-object {$_.GetManagementPack().DisplayName }}}, @{Name="MP Version";Expression={ foreach-object {$_.GetManagementPack().Version }}}, Name, DisplayName, XmlTag, Enabled, Category, Configuration | Sort-object -property MP | export-csv "C:\AllMonitors-MyMgtGroupName.csv"
This posting is provided "AS IS" with no warranties.
No comments:
Post a Comment