Add-WssComputerAccess

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

Syntax

Add-WssComputerAccess
   -ComputerName <String>
   -UserName <String>

Description

The Add-WssComputerAccess cmdlet creates a relationship between a user account and a computer to use for Remote Web Access. You can use the Remove-WssComputerAccess cmdlet to delete an access relationship.

Examples

Example 1: Add computer access for a user

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

This command creates a relationship between the user SarahJones and the computer named Workstation033. The user can now 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