Get-CMSecurityRole

Get-CMSecurityRole

Gets security roles.

構文

Parameter Set: SearchByName
Get-CMSecurityRole [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMSecurityRole -Id <String[]> [ <CommonParameters>]

詳細説明

The Get-CMSecurityRole cmdlet gets one or more security roles in Microsoft System Center 2012 Configuration Manager.

パラメーター

-Id<String[]>

Specifies an array of IDs of security roles.

エイリアス

RoleId

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String[]>

Specifies an array of names of security roles.

エイリアス

RoleName

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

true

<CommonParameters>

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

入力

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

出力

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

Example 1: Get all security roles

This command gets all security roles in System Center 2012 Configuration Manager.

PS C:\> Get-CMSecurityRole

Example 2: Get a security role by using an ID

This command gets the security role that has the ID SMS000CR.

PS C:\> Get-CMSecurityRole -Id "SMS000CR"

Example 3: Get a security role by using a wildcard

This command gets all security roles that have a name that starts with App.

PS C:\> Get-CMSecurityRole -Name App*

関連トピック

Set-CMSecurityRole

Copy-CMSecurityRole

Export-CMSecurityRole

Import-CMSecurityRole

Remove-CMSecurityRole

Remove-CMSecurityRoleFromAdministrativeUser