Windows Enterprise Desktop

Nov 28 2016   1:03PM GMT

Build 14971 Drops Cmd.exe for PowerShell

Ed Tittel Ed Tittel Profile: Ed Tittel

Tags:
Command Line Processor
Windows 10
Windows PowerShell

Here’s an interesting tidbit from Dona Sarkar’s announcement for Windows 10 Build 14971 from the Windows Insider Program. Though it appeared on 11/17/16, I’ve been digesting this one for a while. Also, my experiments have produced thankfully positive results. The big news in that blog post is: Build 14971 drops Cmd.exe for PowerShell. The results of this change are best understood in showing output from Winkey-X for 14971 side-by-side with Current Branch.

Build 14971 drops Cmd.exe for PowerShell

Build 14971 on left, Current Branch on right, shows that PowerShell replaces Command Prompt.
[Click on image for full-size view]

Is There a Gotcha in Build 14971 Drops Cmd.exe for PowerShell?

After I’d said: “Yikes!” my immediate concerns produced two burning questions,

  1. Does this mean normal command line syntax won’t work anymore?
  2. Do batch files (ending in .bat or .cmd) run inside PowerShell?

Fortunately, recent experimentation shows that those questions’ answers are good ones. Thus, it’s a relief that normal command line syntax works fine in PowerShell. And for those with large existing collections of batch files, it’s probably equally comforting that batch files run just fine inside PowerShell. But there are some subtleties in running batch files inside PowerShell scripts. Some experimenting with multiple approaches usually produces necessary outcomes. But only bat file invocation and assignment of desirable variables are tricky. This StackOverflow exchange provides details: Safest way to run BAT file from PowerShell script.

Can’t Give Up Cmd.exe?

MS must be learning from past user reactions, because it also published workarounds to keep using cmd.exe instead of PowerShell. For one thing, cmd.exe still works. You can launch it through Cortana (the search box) or through Windowskey-R (the run box). Here’s a quote from Sarkar’s blog post on opting out of this change altogether:

For those who prefer to use Command Prompt, you can opt out of the WIN + X change by opening Settings > Personalization > Taskbar, and turning “Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows key+X” to “Off”.

Maybe MS finally understands that not all Windows 10 users want or welcome every change. Personally, I think this change is a good one. But leaving the door open to old, tried-and-true tools and environments helps maintain good will with those admins and power users who feel differently.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: