Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build (softpedia.com)
Bogdan Popa, writing for Softpedia:The latest Windows 10 insider build brings a change that puts the Windows PowerShell in the spotlight, as it replaces the super-popular Command Prompt in some essential parts of the operating system. Command Prompt has been around for as long as we can remember, but starting with Windows 10 build 14971, Microsoft is trying to make PowerShell the main command shell in the operating system. As a result, PowerShell officially replaces the Command Prompt in the Win + X menu, so when you right-click the Start menu, you'll only be allowed to launch the more powerful app. Additionally, in File Explorer's File menu and in the context menu that appears when pressing Shift + right-click in any folder, the old Command Prompt will no longer be available. Typing cmd in the run dialog will launch PowerShell as well, so Microsoft has made a significant step towards phasing out the traditional Command Prompt.
Every time you open a command prompt, don't forget you have to enter "set-executionpolicy unrestricted" before you can actually run anything.
Usable!
If they get rid of COMMAND.COM, I'm going straight back to CP/M.
Just because it's been around for a long time doesn't mean it's popular. Thank goodness for cygwin and bash.
... they'd just replace the command shell with the linux bash shell they just added!
Looking for a computer support specialist for your small business? Check out
... to get the beloved command prompt back?!?
they can do whatever they want to the command line.
I see bash for Windows becoming a lot more popular in the near future.
Put it on the taskbar. As everyone knows, according to msft, no one starts programs from the start menu besides, left ofs, the artist formerly known as the live prince, persia is not a rug, and then god told me to tell you this, that I have a disc in my leg, and that damn sheriff really is after me.
I know Powershell and it has been around for a while now, but it's almost always less mental effort on my part to string together shell commands than to open the Powershell ISE and read up on keywords and object attributes. It's habit, but I'd rather keep the thing I'm used to. I know bash scripting and perl too and I can be productive in perl but it's almost always faster for me just do what I need with bash, so I suppose the analogy is similar.
-- I wanna decide who lives and who dies - Crow T. Robot, MST3K
Microsoft registered WindowsPowersHell.org for a reason, people!
There are a few 3-rd party tools that will add items.
I can't see them removing cmd.exe altogether
As for adding items to the Explorer context menu, that is just a matter of editing the registry.
I love Powershell, but half the "admins" I've worked with still don't know how to really use it. It's not an enhanced command or command+, it's a completely different product that unfortunately looks similar enough that non-technical people are going to have no frigging idea what's going on.
This is going to cause a nightmare for call center staff who all have scripts that say something along the lines of "Open a command prompt and ...".
It it still slow to launch? Every experience I've had with it is that it takes several seconds to become usable, even on a very fast machine.
Well, this will be a fun surprise for millions of people running command-line tools. Maybe that'll be my retirement career: "converting" CLI instructions and tools to the new world in Windows 10+.
I don't see how forcing people to use it is supposed to win people over or fail to piss off people who want the old command prompt.
On my current Windows 10, there's no less than 4 different PowerShell version that I can invoke, and presumedly they work different, and a script may or may not work depending on what PowerShell you invoke. Is this how it's supposed to work?
Don't bother using command.com, download TCC LE from JP Soft. Its free. Works like cmd but adds lots of great extra features.
As a long-time Windows admin/systems guy, I think it's definitely time to do this. The batch language is very easy to use for procedural scripts, but in the world of things like desired state configuration, API-driven everything, etc. it makes sense to have a scripting language that basically makes the same calls a compiled program would.
I think the two major drawbacks that are presenting a learning curve are the syntax and the "scripting Legos" aspect. Syntax is...interesting. I have tons of cross platform experience so I have good understanding of lots of command languages. PowerShell's syntax is like DCL (the OpenVMS script language,) Bash and Perl got together and had a 3-parent baby. It's extremely verbose a la DCL, yet extremely symbolic like Perl, and has Bash-like constructs in there as well. Once you get used to it it makes sense, but there's definitely some learning before you're proficient enough to write full redistributable tools in it. The other thing that puts a lot of people off, but that's actually great about it, is that commands don't output text and you have to think things like object types. Bash, batch files or VBScripts have to include tons of logic to parse output, read/write INI files or XML data, etc. That gets reduced to a single statement -- want a CSV of the output? Export-Csv replaces tens of lines of function code to open a file, construct the strings and write them out. It's awesome but very different from the craft-your-own days....just like writing modern software, it's just gluing someone else's code Legos to each other and interfacing with APIs. It's hard to tell what you should be writing and what is already written for you and you're just assembling if you're used to building it all yourself and manipulating stuff with sed/awk/grep and friends.
That said, it's definitely time for Windows admins to get on board with PowerShell. Admins that survive the next transition are going to be managing thousands of servers or microservice instances at some IT provider. You can't manage systems at that scale by manually connecting to them and tweaking things. It's the same thing with Microsoft's Azure service -- it's been developer focused from Day 1, and admins are just now getting documentation that's even somewhat tailored to their experience. I know DevOps is the cool new buzzword, and every admin should have some basic coding skills under their belts, but it's hard to take someone who's been taking care of systems and telling them to treat them like software deployments. This is going to be the next big leap for systems guys now that software defined everything is pretty mainstream.
Ok, then what are you doing here in this thread?
Does this mean that the batch files (.BAT) will stop working? What will happen with the makefiles and other utilities that explicitly call CMD.EXE? This sounds like a really awful idea, if Microsoft doesn't take measures to ensure full backward compatibility.
Windowing Bash is where the real challenge is, though. I'm just the type of person willing to shell out for that. It'll make history, too.
I've fallen off your lawn, and I can't get up.
So how would Trump feel about this? Would he use cmd.exe or command.com? Or maybe bash? or cygwin?
PowerShell :-)
Making shells great again.
So much for compatibility. /C" or "CMD /K" will break overnight.
In powershell, you can't type in "cd\directory".
Not to mention that any shortcut to "CMD
Take Command Console - TCC/LE
https://jpsoft.com/comparison-...
Since the times of 4DOS/4NT microsoft command console has been uncompetitive
Even for scripting: is much more lighter and easier to use sax basic from command console than powershell bloadware
I once had to work in a place where only Windows computers were available and to perform typical admin tasks such as searching for files, moving them around or renaming them, etc. I installed Python and wrote a few command that I could run from an Ipython shell. The experience was actually quite pleasant (Under linux, I do pretty much everything in bash, but I find that scripting in Python made Windows sufferable. Yes, I also know cygwin)
Probably the same thing I'm doing here.. Laughing my ass off at the shitstorm that is Windows 10.. Like the AC, I used/supported Windows from Win311 to Win7, but when I retired in 2010, I decided I was done with MS.. All of my personal systems had been dualboot Linux/Windows, and I did spend a lot of time in Windows, but I decided to cold-turkey when I retired.. One day I decided to end it once and for all.. I deleted the Win7 partition, and haven't looked back since... Now I just sit back with popcorn and watch MS abuse those who still use their products.. Great entertainment, let me tell you...
THANK YOU, Edward Snowden!! Americans owe you a debt of gratitude (whether they know it or not..)
I would think it extremely unlikely that MS will ever *truly* get rid of command prompt as it would break compatibility with the vast trove of third party apps that expect "cmd.exe" to exist and behave as it currently does.
At the end of the day, you may have to create your own shortcut to "cmd.exe", but the utlity itself is going nowhere.
Some of the Preview builds back in the Windows 8.x era had Powershell as the default command shell option. The biggest problem I ran into then was that interacting with BCDEDIT was basically broken. This is a complete non-starter for anyone who needs to configure multi-boot or enable kernel debugging. Another nasty bit is the fact that Powershell is not compatible with remote shell tools like Sysinternals PsExec for interactive sessions (are there better Powershell remoting tools? Sure, but old habits and legacy tools die hard).
You could try making an alias that gets detailed help. Call it man.
And does it have a toolkit (TK) for making graphical interfaces to your scripts? Then it'd be TCC LE/Tk.
What about all the different batch files people have for simple tasks that have been brought up from one system to another over the years.
Powershell is orders of magniture less user-friendly than cmd.exe or command.com. It daresay it is even less friendly than Unix commands that at least support "--help" in a consistent manner.
I can only assume this is Microsoft's final attempt at killing off the command line. So much for hoping one day they'd actually provide a usable one.
If they really wanted to provide an enhanced, programmable shell, then provding a good, lightweight programmer's editor would be the first step. As it stands, Notepad doesn't even recognize Unix style line endings.
"... I hate the syntax of PowerShell."
Agreed. PowerShell is the Zune of syntaxes.
Microsoft needs better managers. Former Microsoft CEO Monkey Boy, was the least respected CEO of a big company. Ballmer was rated the worst CEO in the United States: Quote from an article in Forbes Magazine about Steve Ballmer: "Without a doubt, Mr. Ballmer is the worst CEO of a large publicly traded American company today." Another quote: "The reach of his bad leadership has extended far beyond Microsoft when it comes to destroying shareholder value -- and jobs." (May 12, 2012)
This story doesn't even mention the Zune: Microsoft's 10 biggest failures.
"you'll only be allowed to launch the more powerful app"
Hey Microsoft, please remind me: who owns my PC?
because Hammer don't use nails.
HBI's Law: Frequency of calling others Nazis is directly correlated with the likelihood of the accuser being Communist.
run cmd.exe looks 'normal'
it replaces the super-popular Command Prompt
Super-popular? That's pushing it.
Most people pay tax, but that doesn't make it super-popular.
so Microsoft has made a significant step towards phasing out the traditional Command Prompt.
Everything said before this indicates they've completely replaced it. I'd say that's a fairly significant step, I guess.
systemd is Roko's Basilisk.
I'm not retired, but I retired from windows back in about 2000.
It is kind of funny to watch these first years of the long, slow, Microsoft collapse. It doesn't have to happen, but it is clear that they are incompetent and are only surviving on momentum.
Oh Microsoft, you make it easier for me to hate you and work to minimize using you EVERY DAY! You make it easier for me to want to move to Linux with your every "improvement!" Please, keep it up so I'll finally get so frustrated that I'll forego the couple of applications that I haven't found replacements for in the Linux world yet.
I bet it is still configurable, like it was last time I was digging how to switch default shell in Win10. It must only be that PowerShell became default that is shown for user in interactive dialogs, and only that fact of default change is bit surprising, as preferences are up to user to decide. If we are talking default in newly deployed system - it's OK, if any update would trigger default - that would mean problem in MS thinking.
Servant of karma
The four execution policies are no scripts (default), only scripts signed by trusted publishers, only scripts created locally or signed by trusted publishers, and all scripts. But in practice, most individual developers distributing scripts to the public through GitHub aren't going to be able to afford the CA racket. Nor will they be able to simultaneously satisfy CAs' private key nondisclosure requirements and GPLv3/LGPLv3 requirements for "Installation Information". Thus most scripts distributed through popular source code repository hosts will be unsigned, and effectively everybody will end up setting the policy to unrestricted to "just make it work, G.D. it".
So in practice, what protection does execution policy afford if most users of PCs not joined to a domain will end up setting it to unrestricted? Where if anywhere does Microsoft recommend which execution policy is appropriate for common situations?
I just opened power shell and typed the number one most common thing I type at the cmd prompt: "putty @session" and it opened the putty configuration window rather than launching an ssh connection to the designated server. That's a non-starter for me.
MikeTheGreat,
Greetings from a lesser Mike.
My response: Oops! Didn't see it.
Thanks.
Only thing I want ordinary command line replaced with is BASH. If I have to do something that's difficult or messy with MS batch stuff, I just use JScript.
Typing cmd in the run dialog will launch PowerShell as well, so Microsoft has made a significant step towards phasing out the traditional Command Prompt.
I just upgraded my Insider preview to 14971,
As a result, PowerShell officially replaces the Command Prompt in the Win + X menu, so when you right-click the Start menu, you'll only be allowed to launch the more powerful app.
This is true.
Additionally, in File Explorer's File menu and in the context menu that appears when pressing Shift + right-click in any folder, the old Command Prompt will no longer be available.
This is false.
Typing cmd in the run dialog will launch PowerShell as well, so Microsoft has made a significant step towards phasing out the traditional Command Prompt.
Wrong again. Typing "cmd" into the run dialog launches "C:\windows\system32\cmd.exe"
... Yeh I "prefer" to use it, largely because I've got like 20 years of accumulated batch files and command line applications, as well as the knowledge of how to use them expertly to be productive.
And I bet I'm lightweight compared to thousands of people who actually do real shit at large scale on Windows!
I think PowerShell is pretty cool (I've been writing scripts to consume an API this week actually and have been impressed with how easy it is to bang out stuff quickly), but removing the option for it in Windows 10 is just another reason for me to avoid upgrading for even longer.
They're making it more tempting to look at Macs than ever for me. And I'm one of the few nerds that actually likes using Windows!
Can anyone write me a script to replace all copies of Powershell on my PC with copies of CMD renamed in their place?
Thank you.
Fitting name. Spending eternity using this must be the worst punishment.
CAPTCHA: madman. Sounds about right regarding whoever approved these changes.
-MS
Table-ized A.I.
The Windows blog has the official announcement about this change and you can restore the command prompt if you so desire. Here is what they posted: PowerShell in the Shell: In an effort to bring the best command line experiences to the forefront for all power users, PowerShell is now the defacto command shell from File Explorer. It replaces Command Prompt (aka, “cmd.exe”) in the WIN + X menu, in File Explorer’s File menu, and in the context menu that appears when you shift-right-click the whitespace in File Explorer. Typing “cmd” (or “powershell”) in File Explorer’s address bar will remain a quick way to launch the command shell at that location. 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”. The full announcement is available at https://blogs.windows.com/wind.... Fact-checking is a wonderful thing. :>)
Are the idiots that made this change also going to make it so it just works! So you don't have to activate it, force it work without all the security locks! Are they going to add all the parts you need without having to go find them all over the internet and install them. MS should make every part of PowerShell part of the load. I hate having to go and get the Exchange parts when I need to do something on a machine that is don't normally work on. Until MS can get their act together with PowerShell they will have to do stuff like this and ram it down our throats instead of fixing it and making it work correctly. Pisses me off.