external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.Management.UI.PowWA.Commands.dll-Help.xml |
PowerShellWebAccess |
10/30/2017 |
2.0.0 |
Remove-PswaAuthorizationRule |
Removes a specified authorization rule from Windows PowerShell® Web Access.
Remove-PswaAuthorizationRule [-Id] <Int32[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-PswaAuthorizationRule [-Rule] <PswaAuthorizationRule[]> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
Removes a specified authorization rule from Windows PowerShell Web Access.
PS C:\> Remove-PswaAuthorizationRule -Id 2
This example removes the authorization rule with an ID of 2.
PS C:\> Get-PswaAuthorizationRule | Remove-PswaAuthorizationRule -Confirm
This example removes all authorization rules and also requires confirmation by the user.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Runs the cmdlet without prompting for confirmation. By default the cmdlet asks for confirmation before proceeding.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the identifiers (IDs) of one or more rules to remove.
Type: Int32[]
Parameter Sets: ID
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Specifies the rules to remove.
Type: PswaAuthorizationRule[]
Parameter Sets: Rule
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet accepts either an array of integers or an array of PswaAuthorizationRule objects.