Editar

Compartir a través de


Clear-AssignedAccess

Clears assigned access configured account settings.

Syntax

Clear-AssignedAccess
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Clear-AssignedAccess cmdlet clears assigned access configured account settings and returns the user to default settings.

If a user is signed-in or the computer has a PS/2 keyboard, you must restart the computer to apply the changes.

Assigned Access cmdlets are supported on Windows 10 and Windows 11 client operating systems only.

Examples

Example 1: Clear assigned access configured settings

PS C:\> Clear-AssignedAccess

This command assigned access configured account settings and returns the user to default settings.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None.

You cannot pipe input to this cmdlet.

Outputs

None.

This cmdlet does not generate any output.