Skip to content

Set-UAC

SYNOPSIS

SYNTAX

Disable

Set-UAC [-Disable] [<CommonParameters>]

DisablePrompt

Set-UAC [-DisablePrompt] [<CommonParameters>]

Enable

Set-UAC [-Enable] [<CommonParameters>]

DESCRIPTION

This function can Enable/Disable UserAccountControl entirely or just the Prompt Behavior

EXAMPLES

EXAMPLE 1

Disabled UAC Prompting for Admins, but keeps UAC enabled

Set-UACState -DisablePrompt

EXAMPLE 2

Disabled UAC Entirely

Set-UACState -Disable

EXAMPLE 3

Enable UAC Entirely

Set-UACState -Enable

PARAMETERS

-Disable

Disables UAC entirely

Type: System.Management.Automation.SwitchParameter
Parameter Sets: Disable
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-DisablePrompt

Disables UAC prompting only but leaves UAC enabled

Type: System.Management.Automation.SwitchParameter
Parameter Sets: DisablePrompt
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Enable

Enables UAC

Type: System.Management.Automation.SwitchParameter
Parameter Sets: Enable
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Back to top