Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.53k stars 572 forks source link

Use Hidden Start to Launch cmd.exe #2388

Open numeralnathan opened 2 years ago

numeralnathan commented 2 years ago

Versions

ConEmu build: 210912 x64 stable OS version: Windows 10 21H1 build 19043.1288 Used shell: cmd

Problem description

I have a link pinned to my taskbar that starts a cmd.exe with elevated privileges. This link uses Hidden Start to start the cmd so that I do not get a "User Account Control" dialog box.

I would like to setup a task in ConEmu that uses Hidden Start to start a cmd with elevated privileges. I created a new task and called it Shells::cmd (Admin 2). In the command box, I put "C:\Program Files\Hidden Start\hstart64.exe" /ELEVATE /NOUAC cmd.exe. This creates a tab for Hidden Start. Hidden Start runs cmd in a separate window and the tab for Hidden Start closes since Hidden Start exited.

How do I start cmd with Hidden Start and have the cmd console show up as a tab in ConEmu?

Maximus5 commented 2 years ago

I don't know what's hstart64.exe is, my guess - not a console application.

You may try to run instead of cmd.exe something like ConEmuC64.exe /ATTACH /ROOT cmd.exe. Then it will try to create new tab in ConEmu.