Win-X blacklist for cmd.exe?


drfsupercenter

New member
Local time
2:51 AM
Posts
11
OS
Windows 10 Pro
This seems to be a weird one.

Since Windows 11 is heavily pushing their "Windows Terminal" (which sucks, btw... even on a 9th gen i7 it takes 3-4 full seconds to open, instead of popping up instantly like the classic console host cmd.exe. Because of their stupid UWP system), I wanted to restore the classic "command prompt" option to the Win-X menu.

My initial workaround does work, but it's really silly. If I go into the app execution aliases and turn off Windows Terminal (wt.exe), it frees up that filename, and I can just copy cmd.exe and cmd.exe.mui, rename them wt.exe, and it'll open the classic one instead. But the text still says "Windows Terminal", so...

Anything I do, it seems to hide a shortcut to cmd.exe. I tried the Win+X Menu Editor from WinAero, which supposedly "re-hashes" the shortcuts so they show up. I was able to make shortcuts to basically any EXE file but cmd.

I even tried editing one of the shortcuts, pointing it to cmd.exe instead, and it *disappeared from the menu*. It actually briefly worked before I restarted Explorer - so for example the shortcut said Notepad, but it would open cmd - but then when I restarted Explorer it disappeared.

Does anyone know a workaround for this? I know it's petty, but I want things my way. I haven't tried PowerShell but I have a feeling they'll do the same thing.
 

My Computer

System One

  • OS
    Windows 10 Pro

z3r010

Administrator
Staff member
Local time
7:51 AM
Posts
2,090
Location
Worsley, Manchester, UK
OS
Windows 11 Workstation
Have you tried adding cmd as a custom shortcut?

 

My Computers

System One System Two

  • OS
    Windows 11 Workstation
    Computer type
    PC/Desktop
    Manufacturer/Model
    doofenshmirtz evil incorporated
    CPU
    Ryzen 9 5950X
    Motherboard
    Asus ROG Crosshair VIII Formula
    Memory
    Corsair Vengeance RGB PRO Black 64GB (4x16GB) 3600MHz AMD Ryzen Tuned DDR4
    Graphics Card(s)
    ASUS AMD Radeon RX 6900 XT 16GB ROG Strix LC OC
    Sound Card
    Sound BlasterX Katana
    Monitor(s) Displays
    3 x27" Dell U2714H & 1 x 34" Dell
    Hard Drives
    Samsung 980 Pro 1TB M.2 2280 PCI-e 4.0 x4 NVMe Solid State
    Drive
    PSU
    ASUS ROG THOR 850W 80 Plus Platinum
    Case
    ASUS ROG Strix Helios Midi-Tower ARGB Gaming Case
    Cooling
    ASUS ROG Strix LC Performance RGB AIO CPU Liquid Cooler - 360mm
    Keyboard
    Logi Ergo
    Mouse
    Logitech MX Master 3
    Internet Speed
    900/100 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender, Malwarebytes Pro
    Other Info
    HP M281 Printer
    Logitech Brio Stream webcam
    Yeti X mic
  • Operating System
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop
    CPU
    i7

drfsupercenter

New member
Thread Starter
Local time
2:51 AM
Posts
11
OS
Windows 10 Pro
Have you tried adding cmd as a custom shortcut?

Indeed I did. It doesn't work, any link to cmd.exe gets hidden. I even did it just now with the hashlink thing (even though WinAero's editor already does the same thing!) and it doesn't show up.

If I change it to any other .exe, it shows up.
 

My Computer

System One

  • OS
    Windows 10 Pro

Berton

Well-known member
Power User
VIP
Local time
12:51 AM
Posts
830
Location
Wyoming
OS
Win11 Pro RTM x64
I type Command in the Search box on Win11, get choices and pick Run as Administrator, seems to work fine so far. However when I right-click the icon when on the Taskbar and choose to Pin it doesn't retain the Administrator part like it does in Win10.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM x64
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5
    Memory
    8GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA using DisplayPort-to-VGA adapter
    Monitor(s) Displays
    21"
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security

dacrone

Active member
Member
Local time
11:51 PM
Posts
123
OS
Windows 11 Pro
I'm not around my personal machine right now but when I am later today, I will post how mine is. Mine works on the WinX menu. Std and Admin both.
 

My Computer

System One

  • OS
    Windows 11 Pro

pparks1

Well-known member
Power User
VIP
Local time
2:51 AM
Posts
350
OS
Windows 11 Pro
This seems to be a weird one.

Since Windows 11 is heavily pushing their "Windows Terminal" (which sucks, btw... even on a 9th gen i7 it takes 3-4 full seconds to open, instead of popping up instantly like the classic console host cmd.exe. Because of their stupid UWP system), I wanted to restore the classic "command prompt" option to the Win-X menu.
Windows terminal is awesome. You have tabs, and you have access via 1 interface to cmd, powershell, WSL if you use it, etc. It's so customizable, etc.

I can understand your desire to have speed for cmd, and for me, i just hit Windows Key + cmd + enter and i'm in. That's as quick for me as hitting Windows Key +X to bring up the menu.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.

drfsupercenter

New member
Thread Starter
Local time
2:51 AM
Posts
11
OS
Windows 10 Pro
I'm not around my personal machine right now but when I am later today, I will post how mine is. Mine works on the WinX menu. Std and Admin both.

Please do!

Windows terminal is awesome. You have tabs, and you have access via 1 interface to cmd, powershell, WSL if you use it, etc. It's so customizable, etc.

I can understand your desire to have speed for cmd, and for me, i just hit Windows Key + cmd + enter and i'm in. That's as quick for me as hitting Windows Key +X to bring up the menu.

My issue is that, at least in Windows 10 and 11, any of the "modern" apps using UWP have a noticeable lag before they open. It's not even just the first time either, it does it every time you close the program and relaunch it. I'm not sure what is going on behind the scenes that causes this behavior, but it's easily noticeable. I'm impatient, and when I want a terminal for something I want it to open *right now*

For WSL, I just have an "Open Bash here" shortcut I add with WinAeroTweaker, that directly launches the WSL terminal. It might be using conhost (I don't know) but it's separate from cmd, as it has the little penguin icon. I mean, I get the appeal of Windows Terminal to some people, having tabs is kinda cool I guess, but I really do like keeping them separate. If I need PowerShell, I can just type powershell in a command window.

Also, I mostly enter a directory within Windows Explorer and then right click to open a command window in that folder. So opening a new tab wouldn't help...

Either way, it's just a matter of opinion and preferences. I'm sticking to Windows 10 until I can truly make 11 look and function the way I am used to with 10. I don't *need* any of the stuff it offers.
 

My Computer

System One

  • OS
    Windows 10 Pro

DigitalGoat

Well-known member
Member
VIP
Local time
7:51 AM
Posts
248
Location
United Kingdom
OS
Windows 11 Pro
Have you tried just uninstalling terminal through Settings, Apps, Apps and Features? That should allow you to return cmd.exe to the win-x menu avoiding the aliasing Windows does internally.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Scan 3XS Custom 1700
    CPU
    Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)
    Motherboard
    Asus ProArt Creator B660 D4
    Memory
    64GB DDR 3600Mhz
    Graphics Card(s)
    Asus Tuff RTX 3080 10GB OC
    Sound Card
    Onboard Realtek
    Monitor(s) Displays
    Gigabyte G32QC 32inch 16:9 curved @2560 x 1440p 165Hz Freesync Premium Pro/ Dell SE2422H 24inch 16:9 1920 x 1080p 75Hz Freesync
    Screen Resolution
    2560 x 1440p & 1920 x 1080p
    Hard Drives
    WD SN570 1TB NVME (Boot), Samsung 870QVO 1TB (SSD), SanDisk 3D Ultra 500Gb (SSD) x2, Seagate 3Tb Expansion Desk (Ext HDD), 2x Toshiba 1Tb P300 (Ext HDD)
    PSU
    Corsair RM1000X Modular
    Case
    Corsair 4000D Airflow Desktop
    Cooling
    Corsair Hydro H150i RGB Pro XT 360mm Liquid Cooler, 3 x 120mm fans, 1x Exhaust
    Keyboard
    Microsoft Ergonomic
    Mouse
    Logitech G402
    Internet Speed
    800Mbs
    Browser
    Edge Chromium
    Antivirus
    Defender, Malwarebytes

drfsupercenter

New member
Thread Starter
Local time
2:51 AM
Posts
11
OS
Windows 10 Pro
Have you tried just uninstalling terminal through Settings, Apps, Apps and Features? That should allow you to return cmd.exe to the win-x menu avoiding the aliasing Windows does internally.
Doesn't work. The "Windows Terminal" shortcut stays, and then just says it can't find wt.exe every time you click it lol.

So what I did was kind of a bypass, I just copied cmd.exe and the cmd.exe.mui files, and named them wt. But that's not really ideal.
 

My Computer

System One

  • OS
    Windows 10 Pro

DigitalGoat

Well-known member
Member
VIP
Local time
7:51 AM
Posts
248
Location
United Kingdom
OS
Windows 11 Pro
You might need to use something like process explorer or similar to monitor, or snapshot, before and after registry entries/ calls, then install and/ or run terminal and cmd.exe using menus and shortcuts to see what MS does to redirect calls for cmd.exe to terminal in order to bypass this 'feature', although the monitoring and setting filters to view only relevant events will be a lot of work.
It is entirely possible MS has hard coded terminal into the Start Menu .exe so no matter what you do you will not end up with a satisfactory solution.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Scan 3XS Custom 1700
    CPU
    Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)
    Motherboard
    Asus ProArt Creator B660 D4
    Memory
    64GB DDR 3600Mhz
    Graphics Card(s)
    Asus Tuff RTX 3080 10GB OC
    Sound Card
    Onboard Realtek
    Monitor(s) Displays
    Gigabyte G32QC 32inch 16:9 curved @2560 x 1440p 165Hz Freesync Premium Pro/ Dell SE2422H 24inch 16:9 1920 x 1080p 75Hz Freesync
    Screen Resolution
    2560 x 1440p & 1920 x 1080p
    Hard Drives
    WD SN570 1TB NVME (Boot), Samsung 870QVO 1TB (SSD), SanDisk 3D Ultra 500Gb (SSD) x2, Seagate 3Tb Expansion Desk (Ext HDD), 2x Toshiba 1Tb P300 (Ext HDD)
    PSU
    Corsair RM1000X Modular
    Case
    Corsair 4000D Airflow Desktop
    Cooling
    Corsair Hydro H150i RGB Pro XT 360mm Liquid Cooler, 3 x 120mm fans, 1x Exhaust
    Keyboard
    Microsoft Ergonomic
    Mouse
    Logitech G402
    Internet Speed
    800Mbs
    Browser
    Edge Chromium
    Antivirus
    Defender, Malwarebytes

dacrone

Active member
Member
Local time
11:51 PM
Posts
123
OS
Windows 11 Pro
notepad and paste:
C:\Windows\System32\cmd.exe

file > save as > (all file types from dropdown) > name it NAMEHERE.bat

this is will a standard command prompt window
create a shortcut to that batch file > right click shortcut > Advanced > Run this Program as Administrator > Apply > OK

use WinX menu editor from Winaero to add both the batch and the shortcut (batch = Standard; shortcut = Admin) to whichever section of WinX you want them in.


*Edit > you can also use WinaeroTweaker to create a shortcut to the Admin (Shortcut) that does not prompt with UAC... if you want...
 

My Computer

System One

  • OS
    Windows 11 Pro

Brink

Administrator
Staff member
MVP
Local time
1:51 AM
Posts
4,873
OS
Windows 11 Pro for Workstations
If you like, you can change the default profile for Windows Terminal to have it open to the Command Prompt by default. This way you do not need to change anything in the Win+X menu.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

dacrone

Active member
Member
Local time
11:51 PM
Posts
123
OS
Windows 11 Pro
the OP whole issue (from what the OP said anyways...) is the amount of time it takes to load the framework of the UWP terminal... even on my system it takes multiple seconds, whereas cmd is instant..
 

My Computer

System One

  • OS
    Windows 11 Pro

Dav

Member
Local time
1:51 AM
Posts
52
OS
Windows 11 Pro
1652833813271.png
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP/Envy-17T
    CPU
    Intel Core i7 @ 1.80GHz
    Motherboard
    HP - 8485 (U3E1)
    Memory
    16gb
    Graphics Card(s)
    Intel UHD Graphics 620 and NVIDIA GeForce MX150
    Sound Card
    Realtek High Definition Audio / Intel Display Audio / NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
    Monitor(s) Displays
    Generic PnP Monitor on Intel UHD Graphics 620
    Screen Resolution
    1536x864 pixels
    Hard Drives
    KBG30ZMV256G TOSHIBA (SSD)
    ST1000LM049-2GH172 (SSD)
    PSU
    HP Standard
    Cooling
    HP CoolSense
    Keyboard
    Standard PS/2 Keyboard
    Mouse
    Anker
    Internet Speed
    95Mbps
    Browser
    FireFox
    Antivirus
    WebRoot

drfsupercenter

New member
Thread Starter
Local time
2:51 AM
Posts
11
OS
Windows 10 Pro
notepad and paste:
C:\Windows\System32\cmd.exe

file > save as > (all file types from dropdown) > name it NAMEHERE.bat

this is will a standard command prompt window
create a shortcut to that batch file > right click shortcut > Advanced > Run this Program as Administrator > Apply > OK

use WinX menu editor from Winaero to add both the batch and the shortcut (batch = Standard; shortcut = Admin) to whichever section of WinX you want them in.


*Edit > you can also use WinaeroTweaker to create a shortcut to the Admin (Shortcut) that does not prompt with UAC... if you want...
Ah, clever, using a batch file to bypass whatever blacklist it has built in. Cool
 

My Computer

System One

  • OS
    Windows 10 Pro
Top Bottom