# Enable Remote Desktop Connection Set-ItemProperty ` -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" ` -Name "fDenyTSConnections" ` -Value 0 # Enable Windows Firewall Rule Enable-NetFirewallRule -DisplayGroup "リモート デスクトップ" # Enable NLA (Network Level Authentication) Set-ItemProperty ` -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" ` -Name "UserAuthentication" ` -Value 1