161 096 YouTube!

3

RDP, . , - .

, Windows (WinRM) , , , , , WinRM .

  RDP  Windows

, - RDP ( !)


:

(RDP) , :

  1. ;
  2. :
Reg add \\computername\HKLM\SYSTEM\CurentControlSet\Control\Terminal Server  /v fDenyTSConnections /t REG_DWORD /d /f

, RDP , :

  1. ;
  2. :
Reg add \\computername\HKLM \SYSTEM\CurentControlSet\Control\Terminal Server  /v fDenyTSConnections /t REG_DWORD /d 1 /f

: PowerShell

, RDP PowerShell, :

1: :

  1. PowerShell ;
  2. Invoke-Command:
Invoke-Command Computername server1, Server2 ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value }

:

Invoke-Command Computername server1, Server2 ScriptBlock {Enable-NetFirewallRule -DisplayGroup "Remote Desktop"}

, , :

  1. PowerShell ;
  2. :
Invoke-Command Computername server1, Server2 ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value 1}

PowerShell:
  1. PowerShell PowerShell ;
  2. :
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value

:

Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

:

  1. ( );
  2. :
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value 1
: Computername - , RDP.
: , RDP .
: , , , RDP.

, , ! , - RDP , - , RDP , !


?