Get-PswaAuthorizationRule

Get-PswaAuthorizationRule

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

Sintaxis

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

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

Descripción detallada

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.

Parámetros

-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.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • int[], String[]

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

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Management.PowerShellWebAccess.PswaAuthorizationRule[]

    This cmdlet produces a PswaAuthorizationRule object as output.

Ejemplos

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

Temas relacionados

Add-PswaAuthorizationRule

Remove-PswaAuthorizationRule

Test-PswaAuthorizationRule

Install-PswaWebApplication