![]() To enable RDP remotely, you need to configure and run the WinRM service (Windows Remote Management) on the remote computer. If the remote computer is in a different domain or workgroup, you can provide a username with administrator permissions to connect to remote computer: PsExec.exe /accepteula \\remote_computer -u administrator reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /fĮnable Remote Desktop Remotely Using PowerShell PsExec.exe /accepteula \\RemoteComputerNameorIP netsh firewall set service RemoteDesktop enable Then enable the rule to access RDP port in Windows Defender Firewall: In order to enable RDP on a remote computer in your domain using PSExec, run the command: PsExec.exe /accepteula \\RemoteComputerNameorIP reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f Open a command prompt and go to the PSTools directory: CD c:\PS\PStools You can use the PSExec command-line tool to enable Remote Desktop on a remote Windows device.ĭownload the PsExec toolkit from the Microsoft website and extract the PSTools.zip archive to a local folder. How to Enable RDP Remotely Using Psexec Tool? After rebooting, try to connect to the remote computer via RDP.Netsh advfirewall firewall add rule name="allow RemoteDesktop" dir=in protocol=TCP localport=3389 action=allow In the latter case, the following commands are used: PsExec.exe \\server1 -u contoso\admin -p password cmd You can enable it via GPO, via PowerShell Remoting (described in the next section of this guide), or using Psexec. If a firewall is enabled on the remote computer, you must enable the rule that allows remote desktop connections.Change the DWORD value of the fDenyTSConnections parameter from 1 to 0 Go to the following reg key on the remote computer: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |