If you are in a domain environment, you can also use:

winrs -r:PCNAME cmd

This will open a remote command shell.

Answer from user3744855 on Stack Overflow
🌐
Spiceworks
community.spiceworks.com › software & applications
Run a command on a remote computer - Software & Applications - Spiceworks Community
March 4, 2016 - Ever needed to run a cmd on a remote computer such as gpupdate? this will show you how. This of course assumes you have admin access to the remote PC Step 1: Open an Administrative Command Prompt Open the Command Prompt windows.
Discussions

Command to enable Remote Desktop using CMD
This did not answer the question "Command to enable Remote Desktop using CMD batch" as it was looking for how to enable via command prompt. More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
June 28, 2023
Could I access a Windows computer's command prompt of a specific user without interrupting RDP?
You can look into powershell remoting, that allows you to open a command line session on the PC over the network which is invisible to the user. More on reddit.com
🌐 r/sysadmin
8
1
February 4, 2022
Remote Command Prompt
There is a paid extension for MECM called "Right click tools".With this there is a function with which you can open a remote command prompt for a client via the MECM console. For the function it is enough if you have installed the free demo version of Right click tools. More on reddit.com
🌐 r/SCCM
20
3
May 15, 2023
Launching command prompt on remote computer
🌐 r/PowerShell
5
2
August 14, 2019
🌐
ManageEngine
manageengine.com › remote-desktop-management › remote-command-prompt.html
Remote Command Prompt | Run commands on remote computer - ManageEngine Remote Access Plus
Remote command prompt helps you connect to command prompt & run commands on remote computer. Try the best remote command prompt tool now!
🌐
Microsoft Learn
learn.microsoft.com › en-us › powershell › scripting › security › remoting › running-remote-commands
Running Remote Commands - PowerShell | Microsoft Learn
Any commands that you type at the prompt run on the remote computer and the results are displayed on the local computer. ... To run a command on one or more computers, use the Invoke-Command cmdlet.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1320703 › command-to-enable-remote-desktop-using-cmd
Command to enable Remote Desktop using CMD - Microsoft Q&A
June 28, 2023 - :: Enable remote access. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f :: allow through firewall. netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
🌐
Reddit
reddit.com › r/sysadmin › could i access a windows computer's command prompt of a specific user without interrupting rdp?
r/sysadmin on Reddit: Could I access a Windows computer's command prompt of a specific user without interrupting RDP?
February 4, 2022 -

I run a few applications on a remote computer. It's running Windows 10.

Typically, we are given RDP credentials or AnyDesk to connect to the computer, we run our updates and log out.

However, now it seems that one other person is using the computer at all times and I am unable to connect to it to have my applications running.

I only need to upload a few files and run them onbackground. On a Linux machine, I would use SCP and SSH along with TMUX to have the program running on background.

Is there something like that I could do on Windows? Otherwise, what are my options?

Thanks.

🌐
GeeksforGeeks
geeksforgeeks.org › techtips › remotely-start-windows-through-cmd
How to Remotely Start Windows through CMD? - GeeksforGeeks
July 23, 2025 - Now, users need to connect the external machine with the main machine remotely by following the below-mentioned process. Go to the second machine > Open Command Prompt > Type the below-mentioned command. ... '/f' switch: It forces internal running applications to close the system without warning any speciffications. '/t 0' switch: It sets the time-out period to 0 seconds in the system, initiating an immediate shutdown or restart again. While Command Prompt (CMD) is a versatile tool for repairing Windows errors and fixing boot problems, it also offers functionalities for remote system management.
Find elsewhere
🌐
Reddit
reddit.com › r/sccm › remote command prompt
r/SCCM on Reddit: Remote Command Prompt
May 15, 2023 -

I've done some searching on the forums and MS official documentation and can't find anything specific.

Is is possible to open a command prompt to a device from the host pc? The reason is, I would like to run commands remotely and see the outputs without having any impact the users who are currently using the pc. For example run an ipconfig on a users pc and have the results displayed through sccm on my machine.

Everything I have found online are for this has the cmd open on the users pc which would interrupt their workflow which I'd like to avoid.

EDIT: Thanks for the replies everyone. CMPivot solved the problem I was having but will be looking into RCT as well. Much appreciated.

🌐
N-able
documentation.n-able.com › remote-management › userguide › Content › rbm_command_line.htm
Remote Command Line
In Remote Command Line mode, any commands entered in the terminal run on the connected device as if they were entered on the local command prompt.
🌐
SolarWinds
solarwinds.com › dameware › use-cases › remote-desktop-command-line
Remote Desktop Command Line Connection - Dameware | SolarWinds
SolarWinds® Dameware® Remote Everywhere provides a suite of cloud-based remote access tools, including a command line emulator designed to allow technicians to easily and quickly deliver assistance or perform maintenance on Windows servers, other machines, RDP files, and more. This allows you to use the System Shell remote desktop command line in DRE as either a Windows cmd.exe prompt or a PowerShell prompt, both of which allow you to run batch files and scripts and offer full administrative privileges.
🌐
NinjaOne
ninjaone.com › home › docs › endpoint management › remote control › remote commands
Remote Commands| NinjaOne
July 15, 2024 - Remote commands refer to instructions or actions issued from a central location to run commands on remote computer.
🌐
Splashtop Business
support-splashtopbusiness.splashtop.com › hc › en-us › articles › 360005129812-Remote-Command
Remote Command – Splashtop Business - Support
2 weeks ago - IntroductionRemote Command allows Administrators to launch a Command Prompt, PowerShell or terminal window to send background commands to a Windows, Mac or Android device. Also available as a 1-to-...
🌐
WatchGuard
watchguard.com › help › docs › help-center › en-US › Content › en-US › Endpoint-Security › manage-devices › remote-command-line.html
Remote Control Terminal — Commands and Parameters
This command captures the network traffic sent and received by the remote computer. Specify the start and end of the capture with the parameters - a start| stop. Packet capture generates temporary files on the computer so there must be sufficient hard disk space.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1188090 › can-i-log-in-to-a-remote-computer-from-the-command
Can I log in to a remote computer from the command line? - Microsoft Q&A
Please open Windows PowerShell and run Enable-PSRemoting to configure WinRM, then you can start an interactive session with a remote computer using Enter-PSSession like this
🌐
AnyViewer
anyviewer.com › how-to articles › how to remotely access another computer using cmd
How to Remotely Access Another Computer Using CMD
December 13, 2024 - Step 2. In the System Properties window, go to the "Remote" tab, and check ”Allow remote connection to this computer”. ... Step 1. Press Win + R on the host computer to open the Run dialog box. Enter "cmd" and then hit OK.
🌐
Qualitest Group
qualitestgroup.com › test scripting › how to control a remote windows computer through the command line
How to Control a Remote Windows Computer Through the Command Line
June 24, 2025 - psexec remoteIPaddress –u username –p password -di –w C:\workingDirectory C:\workingDirectory\fileToRun.exe
Top answer
1 of 5
18

Use Powershell Remoting:

Updated link: https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7

Copy pasted form an older version:

Windows PowerShell Remoting

Windows PowerShell remoting, which uses the WS-Management protocol, lets you run any Windows PowerShell command on one or many remote computers. It lets you establish persistent connections, start 1:1 interactive sessions, and run scripts on multiple computers. To use Windows PowerShell remoting, the remote computer must be configured for remote management. After you have configured Windows PowerShell remoting, many remoting strategies are available to you. The remainder of this document lists just a few of them. #Start an Interactive Session To start an interactive session with a single remote computer, use the Enter-PSSession cmdlet. For example, to start an interactive session with the Server01 remote computer, type:

Enter-PSSession Server01

The command prompt changes to display the name of the computer to which you are connected. From then on, any commands that you type at the prompt run on the remote computer and the results are displayed on the local computer.

To end the interactive session, type:

Exit-PSSession

#Run a Remote Command

To run any command on one or many remote computers, use the Invoke-Command cmdlet. For example, to run a Get-UICulture command on the Server01 and Server02 remote computers, type:

invoke-command -computername Server01, Server02 {get-UICulture}

The output is returned to your computer.

LCID    Name     DisplayName               PSComputerName
----    ----     -----------               --------------
1033    en-US    English (United States)   server01.corp.fabrikam.com
1033    en-US    English (United States)   server02.corp.fabrikam.com

#Run a Script

To run a script on one or many remote computers, use the FilePath parameter of the Invoke-Command cmdlet. The script must be on or accessible to your local computer. The results are returned to your local computer.

For example, the following command runs the DiskCollect.ps1 script on the Server01 and Server02 remote computers.

invoke-command -computername Server01, Server02 -filepath c:\Scripts\DiskCollect.ps1

#Establish a Persistent Connection

To run a series of related commands that share data, create a session on the remote computer and then use the Invoke-Command cmdlet to run commands in the session that you create. To create a remote session, use the New-PSSession cmdlet.

For example, the following command creates a remote session on the Server01 computer and another remote session on the Server02 computer. It saves the session objects in the $s variable.

$s = new-pssession -computername Server01, Server02

Now that the sessions are established, you can run any command in them. And because the sessions are persistent, you can collect data in one command and use it in a subsequent command.

For example, the following command runs a Get-Hotfix command in the sessions in the $s variable and it saves the results in the $h variable. The $h variable is created in each of the sessions in $s, but it does not exist in the local session.

invoke-command -session $s {$h = get-hotfix}

Now you can use the data in the $h variable in subsequent commands, such as the following one. The results are displayed on the local computer.

invoke-command -session $s {$h | where {$_.installedby -ne "NTAUTHORITY\SYSTEM"} }
2 of 5
4

Try tunnellier from Bitvise. That is an ssh client. There's also an ssh server for connecting to a windows machine. The two enable you to make very secure connections along with more advanced things like a web proxy or port tunneling.