Get-PswaAuthorizationRule

Get-PswaAuthorizationRule

Returns a set of the Windows PowerShell® Web Access authorization rules.

構文

Parameter Set: ID
Get-PswaAuthorizationRule [[-Id] <Int32[]> ] [ <CommonParameters>]

Parameter Set: Name
Get-PswaAuthorizationRule [-RuleName] <String[]> [ <CommonParameters>]

詳細説明

The Get-PswaAuthorizationRule cmdlet returns a set of the Windows PowerShell® Web Access authorization rules.
If neither the Id parameter nor the RuleName parameter is specified, then this cmdlet lists all rules. The Id parameter can be used to filter the results.

パラメーター

-Id<Int32[]>

Specifies the identifiers (IDs) of the rules that this cmdlet should get. If no IDs are specified, then this cmdlet returns all authorization rules.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

True (ByValue, ByPropertyName)

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

false

-RuleName<String[]>

Specifies the names of authorization rules to retrieve. This parameter returns any rules that exactly match the rule names of the strings in this array.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

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

True (ByValue, ByPropertyName)

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

false

<CommonParameters>

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

入力

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

  • int[], String[]

    This cmdlet accepts an array of integers or an array of string values as input.

出力

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

  • Microsoft.Management.PowerShellWebAccess.PswaAuthorizationRule[]

    This cmdlet produces a PswaAuthorizationRule object as output.

EXAMPLE 1

This example gets all of the rules.

PS C:\> Get-PswaAuthorizationRule

EXAMPLE 2

This example gets a rule with an ID of 2.

PS C:\> Get-PswaAuthorizationRule –Id 2

EXAMPLE 3

This example illustrates how the cmdlet accepts a value from pipeline. A rule id and a rule name are passed in this cmdlet.

PS C:\> "rule1",0 | Get-PswaAuthorizationRule

関連トピック

Add-PswaAuthorizationRule

Remove-PswaAuthorizationRule

Test-PswaAuthorizationRule

Install-PswaWebApplication