Clear-AssignedAccess is accessible with the help of AssignedAccess module. To configure AssignedAccess, go through this link.
Synopsis
Removes the user account from assigned access.
Description
The Clear-AssignedAccess cmdlet removes the user account from assigned access and returns the user to default settings.
If a user is signed in or the PC has a PS/2 keyboard, you must restart the computer to apply the changes.
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 |
Syntax
Clear-AssignedAccess [-WhatIf] [-Confirm] [<CommonParameters>]
——————EXAMPLE 1——————
PS C:> Clear-AssignedAccess
This example shows how to remove the user account from assigned access and return the user to default settings.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Clear-AssignedAccess
You can also read about