Export (0) Print
Expand All

Remove-PswaAuthorizationRule

Updated: August 15, 2012

Applies To: Windows Server 2012

Remove-PswaAuthorizationRule

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

Syntax

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

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




Detailed Description

Removes a specified authorization rule from Windows PowerShell Web Access.

Parameters

-Force

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Id<Int32[]>

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


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Rule<PswaAuthorizationRule[]>

Specifies the rules to remove.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • int[], PswaAuthorizationRule[]

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


Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

Examples

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft