Remove-WssComputerAccess

Removes a relationship between a user and a computer for Remote Web Access.

Syntax

Remove-WssComputerAccess
      -ComputerName <String>
      -UserName <String>

Description

The Remove-WssComputerAccess cmdlet removes a relationship between a user account and a computer used for Remote Web Access. After you remove the relationship, a user cannot access a computer by means of Remote Web Access. You can use the Add-WssComputerAccess cmdlet to create a relationship for use with Remote Web Access.

Examples

Example 1: Remove computer access for a user

PS C:\> Remove-WssComputerAccess -ComputerName "Workstation033" -UserName "SarahJones"

This command deletes a relationship between the user SarahJones and the computer named Workstation033. The user can no longer use Remote Web Access to connect to this computer.

Parameters

-ComputerName

Specifies the name of a computer.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-UserName

Specifies the user name of an account.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False