Get-SCOMRunAsProfile

Gets Run As profiles.

Syntax

Get-SCOMRunAsProfile
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMRunAsProfile
   [-DisplayName] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMRunAsProfile
   -Id <Guid[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMRunAsProfile
   [-ManagementPack] <ManagementPack[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMRunAsProfile
   -Name <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

Description

The Get-SCOMRunAsProfile cmdlet gets Run As profiles. A Run As profile is a group of associated Run As accounts that manages credentials and their distribution to different computers.

Examples

Example 1: Get Run As profiles by using a name

PS C:\>Get-SCOMRunAsProfile -Name "Microsoft.SystemCenter*"

This command gets the Run As profiles that have names that begin with Microsoft.SystemCenter.

Example 2: Get a Run As profile by using a display name

PS C:\>Get-SCOMRunAsProfile -DisplayName "Automatic Agent Management Account"

This command gets the Run As profile that has the display name Automatic Agent Management Account.

Example 3: Get a Run As profile by using an ID

PS C:\>Get-SCOMRunAsProfile -Id 7413b06b-a95b-4ae3-98f2-dac9ff76dabd

This command gets the Run As profile that has the Id 7413b06b-a95b-4ae3-98f2-dac9ff76dabd.

Example 4: Get all Run As profiles for a management pack

PS C:\>Get-SCOMManagementPack -DisplayName "System Center Core Library" | Get-SCOMRunAsProfile

This command gets the management pack named System Center Core Library and uses the pipeline operator to pass that management pack object to the Get-SCOMRunAsProfile cmdlet. The cmdlet gets all Run As profiles for the management pack.

Parameters

-ComputerName

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

The computer must run the System Center Data Access service.

If you do not specify this parameter, the default is the computer for the current management group connection.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

Specifies a user account under which the management group connection runs. Specify a PSCredential object, such as one that the Get-Credential cmdlet returns, or a user name such as User01, Domain01\User01, or User@Domain.com. If you type a user name, the cmdlet prompts you for a password. For more information about credential objects, type "Get-Help Get-Credential".

This account must have access to the server that is specified in the ComputerName parameter if that parameter appears.

If you do not specify this parameter, the default is the account for the current user.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Specifies an array of display names for Run As profiles. The cmdlet takes each string in the array and looks for matches among the display names of the Run As profiles that this cmdlet works with. Values for this parameter vary depending on which localized management packs are imported into the management group and the locale of the user that runs Windows PowerShell.

Type:String[]
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:True

-Id

Specifies an array of IDs of Run As profiles. The cmdlet gets Run As profiles that have these IDs.

Type:Guid[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagementPack

Specifies an array of management pack objects. The cmdlet gets the Run As profiles for the management pack objects in the array. To obtain management pack objects, use the Get-SCOMManagementPack cmdlet.

Type:ManagementPack[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies an array of names of Run As profiles. The cmdlet takes each string in the array and looks for matches among the names of the Run As profiles that this cmdlet works with.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:True

-SCSession

Specifies an array of Connection objects. To get Connection objects, specify the Get-SCOMManagementGroupConnection cmdlet.

If this parameter does not appear, the cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type "Get-Help about_OpsMgr_Connections".

Type:Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.EnterpriseManagement.Configuration.MonitoringSecureReference