Get-SCSMRunAsAccount

Get-SCSMRunAsAccount

Retrieves RunAs accounts.

構文

Parameter Set: FromDomainUserName
Get-SCSMRunAsAccount [[-Domain] <String> ] [[-UserName] <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

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

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

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

詳細説明

The Get-SCSMRunAsAccount cmdlet retrieves RunAs accounts. RunAs accounts contain the user credentials under which workflows run. They make it possible for Service Manager to act on behalf of a specific user. If the Name parameter, the DisplayName parameter, or the Domain parameter and the UserName parameter are omitted, all RunAs accounts are returned. The Name or DisplayName parameters support wildcard matching.

パラメーター

-ComputerName<String[]>

Specifies a computer to establish a connection with. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.

Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).

エイリアス

なし

必須?

false

位置は?

named

既定値

localhost

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

true (ByValue)

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

false

-Credential<PSCredential>

Specifies a user account under which the management group connection will run. The account must have access to the server that is specified in the ComputerName parameter, if the server is specified. The default value is the current user.

You can enter a PSCredential object that is returned by the Get-Credential cmdlet.

エイリアス

なし

必須?

false

位置は?

named

既定値

User account of the current context

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

true (ByValue)

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

false

-DisplayName<String[]>

Specifies the display name of the RunAs account profile name to retrieve.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue, ByPropertyName)

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

false

-Domain<String>

Specifies the domain of the RunAs account to be retrieved.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

false

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

false

-Id<Guid[]>

Specifies the Id of the SecureReference property of the RunAsAccount object. This may be a Guid or a string that will be converted to a Guid.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-Name<String[]>

Specifies the Name of the RunAs account to retrieve.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-SCSession<Connection[]>

Specifies a connection to a management server. The default is the current management group connection.

Enter a ManagementGroupConnection object that is returned by the Get-SCManagementGroupConnection cmdlet.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-UserName<String>

Specifies the UserName to use for the Run As account.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

  • System.Guid

    You can pipe a Guid of a RunAsAccount to the Id parameter of the Get-SCSMRunAsAccount cmdlet.

  • System.String

    You can pipe a name of a RunAsAccount to the Name parameter of the Get-SCSMRunAsAccount cmdlet.

出力

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

  • Microsoft.EnterpriseManagement.Core.SdkUtilities.Security.UserAccount

    The object that encapsulates the RunAs account name and the credentials that are associated with that RunAs account.

-------------------------- EXAMPLE 1 --------------------------

The command in this example retrieves the RunAs account information from Service Manager.

PS C:\>Get-SCSMRunAsAccount

関連トピック

New-SCSMRunAsAccount

Remove-SCSMRunAsAccount

Update-SCSMRunAsAccount