Clear-AssignedAccess

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

Get-Command Clear-AssignedAccess powershell script command cmdlet AssignedAccess

You can also read about

To know more PowerShell cmdlets(Commands) on AssignedAccess click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *