windows server powershellでRD セッションホストサーバーの接続を許可する
- 作成日 2022.06.22
- 更新日 2022.11.05
- windows server 接続ブローカー
- windows server

windows serverで、powershellを使用して、RD セッションホストサーバーの接続を許可するコマンドを記述してます。
環境
- OS windows server 2012 R2
コマンド
以下のコマンドで可能です。
> Set-RDSessionHost -SessionHost セッションホスト名 -NewConnectionAllowed Yes
「No」にすると、接続拒否になります。
> Set-RDSessionHost -SessionHost セッションホスト名 -NewConnectionAllowed No
現在のステータスは以下で確認することが可能です。
> Get-RDSessionHost -CollectionName "Remote Desktop"
CollectionName SessionHost NewConnect
ionAllowed
-------------- ----------- ----------
Remote Desktop xxxx No
Remote Desktop xxxx Yes
Remote Desktop xxxx Yes
-
前の記事
javascript 文字全置換で「replaceAll」と「replace(正規表現)」とのパフォーマンスを計測する 2022.06.22
-
次の記事
Linux 事前にいたディレクトリに移動する 2022.06.22
コメントを書く