< Back

Clear-AssignedAccess

Tue Jan 29, 2019 9:26 pm

NAME Clear-AssignedAccess



SYNOPSIS

Removes the user account from assigned access.





SYNTAX

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





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 [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None.



You cannot pipe input to this cmdlet.





OUTPUTS

None.



This cmdlet does not generate any output.





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.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=286449

Get-AssignedAccess

Set-AssignedAccess