Document SCOM RunAs Accounts and their Profile Associations PowerShell Script

This script will document your SCOM 2012 and SCOM 2016 RunAs accounts, and the RunAs profiles they are associated to.This is handy for collecting data for change management, making sure multiple management groups have the same configuration, and ensuring you have documented accou

539 times
Add to favorites
System Center
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Error when running script
    1 Posts | Last post September 06, 2017
    • I'm getting the error below when running this script:
      Exception calling "GetSecureReference" with "1" argument(s): "An object of class ManagementPackSecureReference with 
      ID db1153d8-b7bc-b42e-1e43-9ad744c879bc was not found."
      At C:\Temp\GetSCOMRunAsProfilesAccounts_v1.0\GetSCOMRunAsProfilesAccounts.ps1:125 char:7
      +             $secRef = $mg.Security.GetSecureReference($override.SecureReference.Id)
      +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : ObjectNotFoundException