How to run PowerShell commands on a remote Windows 10 system

Windows 10 has remote access tools. These devices come bundled with the OS and you can also install third-party remote access devices. Remote access is a useful feature but it can also be a security risk if you are not careful how and when it is enabled, or who you give remote access to. For this reason, most remote access devices are locked behind layers of access that must be provided before the device can operate on your system. PowerShell is an exception.

Windows 10 remote system

Run PowerShell commands on a remote Windows 10 system

You can run PowerShell commands on a remote Windows 10 system however, the target system must allow these commands to run remotely.

Enable PowerShell commands on the remote system

To allow remote PowerShell commands to run on a system, follow these steps.

  1. On the target system, open PowerShell with administrative rights.
  2. Run this command: Enable-PSRemoting -Force
  3. Once the command is executed, you will be able to access it remotely, and run PowerShell commands.

If the target computer is part of a workgroup but is not connected to an Active Directory, you need to enable PowerShell commands on the system by following these steps.

  1. On the target system, open PowerShell with administrative rights.
  2. Run this command: Set-NetFirewallRule -Name 'WINRM-HTTP-In-TCP' -RemoteAddress Any
  3. Once the command is executed, you will be able to remotely access the system and run PowerShell commands on it.

These commands are basic when it comes to enabling PowerShell commands on a remote system but you will run other commands as well. For one, when connecting to a remote system, you need to authenticate with the system username and password. In addition, you also need to remove the computer that you are going to remove from the system. It is not a simple process at all but it starts by enabling commands to run on the remote system.

Conclusion

Remote access is complex when done through command lines. If you’re struggling to set up remote access, consider using a third-party tool like TeamViewer that is much easier to use but still secure. If you have no choice but to use PowerShell, you should spend time learning how to start a connection, and parameters you can explain for it. Do this before you need to access the system remotely. A little knowledge and insight into how remote access works will help you solve problems as they arise.

The post Show how to run PowerShell commands on a remote Windows 10 system first on TechtricksNg.