RDP, . , - .
, Windows (WinRM) , , , , , WinRM .

, - RDP ( !)
:
(RDP) , :
- ;
- :
Reg add \\computername\HKLM\SYSTEM\CurentControlSet\Control\Terminal Server /v fDenyTSConnections /t REG_DWORD /d /f
, RDP , :
- ;
- :
Reg add \\computername\HKLM \SYSTEM\CurentControlSet\Control\Terminal Server /v fDenyTSConnections /t REG_DWORD /d 1 /f
: PowerShell
, RDP PowerShell, :
1: :
- PowerShell ;
- 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"}
, , :
- PowerShell ;
- :
Invoke-Command Computername server1, Server2 ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value 1}
PowerShell:
- PowerShell PowerShell ;
- :
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value
:
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
:
- ( );
- :
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" Value 1
: Computername - , RDP.
: , RDP .
: , , , RDP.
, , ! , - RDP , - , RDP , !