Remove-WssComputerAccess
Remove-WssComputerAccess
Removes a relationship between a user and a computer for Remote Web Access.
Syntax
Parameter Set: Default
Remove-WssComputerAccess -ComputerName <String> -UserName <String> [ <CommonParameters>]
Detailed 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.
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: Remove computer access for a user
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.
PS C:\> Remove-WssComputerAccess -ComputerName "Workstation033" -UserName "SarahJones"