Get-SCOMRunAsProfile

Get-SCOMRunAsProfile

Gets Run As profiles.

構文

Parameter Set: Empty
Get-SCOMRunAsProfile [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromId
Get-SCOMRunAsProfile -Id <Guid[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPack
Get-SCOMRunAsProfile [-ManagementPack] <ManagementPack[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromRunAsProfileDisplayName
Get-SCOMRunAsProfile [-DisplayName] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromRunAsProfileName
Get-SCOMRunAsProfile -Name <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

詳細説明

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.

パラメーター

-ComputerName<String[]>

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Credential<PSCredential>

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-DisplayName<String[]>

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.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

true

-Id<Guid[]>

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

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-ManagementPack<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.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Name<String[]>

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.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

true

-SCSession<Connection[]>

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".

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.EnterpriseManagement.Configuration.MonitoringSecureReference

Example 1: Get Run As profiles by using a name

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

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

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

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

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

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

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

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

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

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.

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

関連トピック

Add-SCOMRunAsProfile

Get-SCOMManagementGroupConnection

Get-SCOMManagementPack

Get-SCOMRunAsProfile

Remove-SCOMRunAsProfile

Set-SCOMRunAsProfile