Currently i'm updating some document (yeehaa) for my SCOM User Roles design.
I can use powershell to enumerate all views used within a role, but can't find a way to get the displayname of those views.
When using:
(Get-UserRole -Id <UserRoleID>).Scope.MonitoringViews
i get a list of GUID's of the views the userrole has access to. How can i use these ID's to retrieve properties like displayname.
Because a view isn't a monitoring class or object, those cmdlets are useless.
Any ideas?
Scott, Thanks but i allready have the script posted on that blogsite. I use it for backing-up the userroles. I tried to extend this script to log the view names to a logfile. The group name can be obtained with Get-MonitoringObject. Because there's no cmdlet for getting views, i'm trying to use the SDK but haven't succeeded so far. I think the name and the GUID's should be linked in the OperationsDB otherwise users would see GUID's instead of localized. Anyone an idea to use the SDK to retrieve Views with a script?