Add-WssComputerAccess
Add-WssComputerAccess
Creates a relationship between a user and a computer for Remote Web Access.
Syntax
Parameter Set: Default
Add-WssComputerAccess -ComputerName <String> -UserName <String> [ <CommonParameters>]
Detailed 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.
Parameters
-ComputerName<String>
Specifies the name of a computer.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UserName<String>
Specifies the user name of an account.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Add computer access for a user
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.
PS C:\> Add-WssComputerAccess -ComputerName "Workstation033" -UserName "SarahJones"