Remove-WssComputerAccess
Remove-WssComputerAccess
Removes a relationship between a user and a computer for Remote Web Access.
構文
Parameter Set: Default
Remove-WssComputerAccess -ComputerName <String> [-GroupName <String> ] [-UserName <String> ] [ <CommonParameters>]
詳細説明
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.
パラメーター
-ComputerName<String>
Specifies the name of a computer.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-GroupName<String>
Specifies the name of a group.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserName<String>
Specifies the user name of an account.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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"