Clear-Assigned Access

Removes the user account from assigned access.

Syntax

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

Description

The Clear-AssignedAccess cmdlet removes the specified user account from assigned access 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.

Examples

Example 1: Remove the user account from assigned access

PS C:\> Clear-AssignedAccess

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Aliases: cf
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.

Type: SwitchParameter
Aliases: wi
Position: Named
Default value: 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.