Remove-PswaAuthorizationRule

Remove-PswaAuthorizationRule

Removes a specified authorization rule from Windows PowerShell® Web Access.

構文

Parameter Set: ID
Remove-PswaAuthorizationRule [-Id] <Int32[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Rule
Remove-PswaAuthorizationRule [-Rule] <PswaAuthorizationRule[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

Removes a specified authorization rule from Windows PowerShell Web Access.

パラメーター

-Force

Runs the cmdlet without prompting for confirmation. By default the cmdlet asks for confirmation before proceeding.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Id<Int32[]>

Specifies the identifiers (IDs) of one or more rules to remove.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

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

True (ByValue, ByPropertyName)

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

false

-Rule<PswaAuthorizationRule[]>

Specifies the rules to remove.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

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

True (ByValue)

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

  • int[], PswaAuthorizationRule[]

    This cmdlet accepts either an array of integers or an array of PswaAuthorizationRule objects.

出力

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

  • None

EXAMPLE 1

This example removes the authorization rule with an ID of 2.

PS C:\> Remove-PswaAuthorizationRule –Id 2

EXAMPLE 2

This example removes all authorization rules and also requires confirmation by the user.

PS C:\> Get-PswaAuthorizationRule | Remove-PswaAuthorizationRule -Confirm

関連トピック

Add-PswaAuthorizationRule

Get-PswaAuthorizationRule

Test-PswaAuthorizationRule

Install-PswaWebApplication