Windows 7, how to configure/allow remote cmd access to specific PC/IP address from the local network

cmd.exeremote accessrpcwindows 7

In Windows 7, how do I configure/allow remote command prompt access to specific PC or IP address from the local network?


PsList gave me: "Access is denied."

Firewalls are on both PCs, off. RPC and Remote Registry services are started on the target PC. Both are running Windows 7, and the target PC has password protected account.

The PCs are in the same network, behind a router. The ping is working between the PCs.

Do I need to set Workgroups, Domains, etc.?

What else could I do?

Best Answer

To achieve your desired goal, you need to take two distince steps.

First, enable the Remote Desktop Protocol. Unfortunately there is no simple way to do this, so I will describe the path through the GUI. Open the control panel -> System and Security -> System -> Remote Settings -> Remote tab. Select any of the "Allow connections from...". If you like, limit it to certain users. Otherwise only administrator accounts will have access.

Microsoft offers a more involved how-to, Tip: Configure Remote Desktop Access on Windows 7 Systems.

Next, configure your firewall. Fortunately you can configure it through the command line interface. Open a command line interface with administrator rights and enter:

netsh advfirewall firewall add rule name = "Remote Desktop" Dir = in action = allow protocol = TCP localport = 3389 remoteip=

Of course, replace the remoteip with the right one. You can read more about netsh in How to use the "netsh advfirewall firewall" context instead of the "netsh firewall" context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista.

Related Question