Bug Report - RunAs / CPAU opens separate CMD window outside of Terminal #2291

Open
opened 2026-01-30 22:51:39 +00:00 by claunia · 0 comments
Owner

Originally created by @jricha34 on GitHub (Jun 26, 2019).

Environment

Windows build number: [10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Any other software?
None

Steps to reproduce

runas /user:someuser cmd
enter password of someuser

Expected behavior

Open another CMD within Terminal

Actual behavior

Opens CMD outside of Terminal in CMD standalone window.

In general I was trying to figure out how to open a terminal window from the command line in alternate creds and couldn't sort it out. I got access denied when trying to launch.

Something I regularly do is use runas /netonly or cpau (www.joeware.net) to launch CMD with alternate creds which locally is whatever user I am logged into the PC with but remotely is the alternate credentials. For example I will open up CMD windows in creds from say 5-10 different disconnected AD Forests. Then as I need to manage the different forests I jump to the proper CMD window and run the commands I need to run.

As an aside, I am thrilled to see all of this work being done for command line access. There are quite a few of us who have been managing Windows and eventually AD from the command line since NT4 in the late 90s.

joe (joe@joeware.net)

Originally created by @jricha34 on GitHub (Jun 26, 2019). # Environment Windows build number: [10.0.18362.175] Windows Terminal version (if applicable): 0.2.1715.0 Any other software? None # Steps to reproduce runas /user:someuser cmd enter password of someuser # Expected behavior Open another CMD within Terminal # Actual behavior Opens CMD outside of Terminal in CMD standalone window. In general I was trying to figure out how to open a terminal window from the command line in alternate creds and couldn't sort it out. I got access denied when trying to launch. Something I regularly do is use runas /netonly or cpau (www.joeware.net) to launch CMD with alternate creds which locally is whatever user I am logged into the PC with but remotely is the alternate credentials. For example I will open up CMD windows in creds from say 5-10 different disconnected AD Forests. Then as I need to manage the different forests I jump to the proper CMD window and run the commands I need to run. As an aside, I am thrilled to see all of this work being done for command line access. There are quite a few of us who have been managing Windows and eventually AD from the command line since NT4 in the late 90s. joe (joe@joeware.net)
claunia added the Issue-FeatureResolution-DuplicateProduct-TerminalArea-Interop labels 2026-01-30 22:51:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2291