cmd vs Powershell  

77 members have voted

  1. 1. Which would you like to see in Windows 8?

    • Powershell default, cmd alternative
    • cmd default, Powershell alternative (Currently in Windows 7)
    • Powershell default, no cmd at all
    • cmd default, no Powershell at all


Recommended Posts

  On 30/10/2011 at 22:15, n4cer said:

cmd can't be removed as it would break existing scripts and applications that call cmd.

Though PowerShell has aliases for many cmd built-in commands, the cmdlets for which the aliases are mapped do not support the switches of the cmd commands (e.g., you can't do "dir /w" in PowerShell). Variable syntax is also different (e.g., %windir% in cmd vs $env:windir in PowerShell).

PowerShell is getting ever increasing usage as the underpinning for Windows administration and troubleshooting functionality. While it should see greater exposure, such as adding it to the Ribbon and the context menu ("Open PowerShell here"), cmd should not be removed to elevate PowerShell unless the use cases for cmd are covered by PowerShell. It's not like cmd is the only shell besides PowerShell that currently ships with Windows. Its presence doesn't diminish PowerShell.

Nor is it meant to.

Add-on command shells have existed for NT-based flavors of Windows from the beginning (two of the more well-known were the Hamilton C Shell, a straight-up port of the Bourne Again Shell (bash) to NT, and 4NT (and 4NT alternative TakeCommand) from JP Software) - PowerShell isn't meant to take away from that. (Bash certainly hasn't taken away the usefulness of other shells anywhere else - including Linux distributions, MacOS, or even UNIX, where bash began.) The reason, in fact, for the popularity of bash as a shell is the fact that the same commands are usable regardless of the underlying OS. PowerShell, unlike bash, is designed expressly for Windows - it's far from OS-neutral. Most of the documentation for PowerShell is on the *server* side of Windows (that is despite the reality that PowerShell is usable by Windows 7 today) - generally, unless you have a niche usage that PowerShell fits, you likely won't be running PowerShell on Windows 7 (though you certainly can).

  On 30/10/2011 at 20:42, Taranaich said:

So install Bash. You can do that.

Cmd maybe, but don't think you've actually tried PowerShell or you wouldn't be saying that. It's quite powerful. Bash is good yes,but looking over what Bash has built in, nothing really jumps out as being something that others can't do or just doesn't apply.. most of it's goodies come from external programs or scripting languages, most of which are available to other shells.

True. The very attraction of bash is that it is OS-neutral - it works the same regardless of the underlying operating system. (Have we forgotten one of the very first NT CMD alternatives, the Hamilton C Shell? It was, in fact, a direct port of bash (which stands for the Bourne Again Shell, which itself was a fork of ash) to NT 3.1/9x. The Hamilton C Shell was one of my favorite *jaw-dropper* programs during the Windows 95 beta, because it was an NT program that ran *untouched/unaltered* on 9x.) Most CMD alternatives (including PowerShell) are designed to fill in niches.

  On 30/10/2011 at 17:38, htcz said:

Why invoke cmd just to ping an asset?

And the link you posted to........is that really a reason to use cmd over Powershell? :rolleyes: come on....

Let me ask you a question. You made a poll here, right? Then you ask everyone's opinion, when someone gives it you just come with all your love for Powershell. I know the differences between CMD and Powershell and that's why I posted my goddamn opinion.

I don't think really think people understand what powershell is. In some ways its more powerful then bash and other ways its more awkward. But I do think it really is getting better/ more powerful with each version. In Windows 8 server powershell knowledge looks like it almost most know.

Windows needs a more powerful default command interpreter. Powershell is worlds ahead of the stock "cmd", and seems to effectively rival things like BASH in *nix by allowing complex scripting and greater access to system resources.

The old school cmd needs to go away, especially since Powershell can run all the normal commands anyway.

  On 30/10/2011 at 19:51, Aethec said:

It seems many people here don't understand what CMD is.

Short explanation: CMD is a console window that provides basic functionality for changing the current directory (cd), showing the files and folders (dir) and a few other things (copy, auto-completion, command history...). The most important thing it does is to enable you to open files, give arguments to executables, and provide input and output for console applications.

What you're doing by calling "robocopy C:\SomeFolder C:\SomeOtherFolder" is launching robocopy.exe using "C:\SomeFolder" and "C:\SomeOtherFolder" as parameters. "tree C:\" just calls tree.com with "C:\" as a parameter. "ping google.com" calls ping.exe with "google.com" as parameter. And so on.

These programs (not commands - check your C:\Windows\System32 folder) can be used exactly the same way in PowerShell, and their output will look exactly the same.

In fact, if Microsoft set the default background color to black in PowerShell and removed the "PS" at the beginning of each line, most people wouldn't notice the difference. You would still be able to use the programs you use now.

Great post :)

  On 30/10/2011 at 20:01, Joey S said:

cmd and Powershell are like kids toys by comparison

cmd of course but Powershell.........Powershell and bash can compete pretty good with each other :)

  On 30/10/2011 at 20:42, Taranaich said:

Cmd maybe, but don't think you've actually tried PowerShell or you wouldn't be saying that. It's quite powerful. Bash is good yes,but looking over what Bash has built in, nothing really jumps out as being something that others can't do or just doesn't apply.. most of it's goodies come from external programs or scripting languages, most of which are available to other shells.

Another good post.

Lets not make this a bash vs Powershell thread :p

  On 30/10/2011 at 20:53, ThePitt said:

wtf is powershell?

I already posted this: http://en.wikipedia.org/wiki/Windows_PowerShell

  On 30/10/2011 at 21:20, pupdawg21 said:

Powershell is NOT a replacement for CMD and ALL commands do not work in the same manner or using the same syntax in the 2 environments. Many of the most commonly used ones do however.

As Aethec said, from CMD you are actually calling other programs. (stated in %PATH) so in a sense you can use all the commands in CMD in Powershell as well. There might be some conflicts with Powershell commands but thats why I stated that if a program calls cmd then executes a command, Powershell should start up in a cmd compatibility mode.

  On 30/10/2011 at 22:15, n4cer said:

cmd can't be removed as it would break existing scripts and applications that call cmd.

Though PowerShell has aliases for many cmd built-in commands, the cmdlets for which the aliases are mapped do not support the switches of the cmd commands (e.g., you can't do "dir /w" in PowerShell). Variable syntax is also different (e.g., %windir% in cmd vs $env:windir in PowerShell).

I already commented on this :) If a program calls cmd then executes a command, Powershell should start up in a cmd compatibility mode. This way it is backwards compatible.

  On 30/10/2011 at 22:15, n4cer said:

PowerShell is getting ever increasing usage as the underpinning for Windows administration and troubleshooting functionality. While it should see greater exposure, such as adding it to the Ribbon and the context menu ("Open PowerShell here"), cmd should not be removed to elevate PowerShell unless the use cases for cmd are covered by PowerShell. It's not like cmd is the only shell besides PowerShell that currently ships with Windows. Its presence doesn't diminish PowerShell.

That would be the only thing neccesary

  On 31/10/2011 at 00:28, bruNo_ said:

Let me ask you a question. You made a poll here, right? Then you ask everyone's opinion, when someone gives it you just come with all your love for Powershell. I know the differences between CMD and Powershell and that's why I posted my goddamn opinion.

Obviously since you have no argument, you simply state it is your opinion. While I do find your opinion valid, there is no base to it therfore I can not agree with it.

  On 31/10/2011 at 09:55, DonC said:

I'd use powershell by default if it:

1. Started up as quickly as cmd

2. Had a convenient and reliable phrase in the start menu. PowerPoint gets in the way!

1. It will get better :)

2. Put "powers" and it is the first thing to come up. Come on, another lame excuse.

  On 31/10/2011 at 00:39, Melfster said:

I don't think really think people understand what powershell is. In some ways its more powerful then bash and other ways its more awkward. But I do think it really is getting better/ more powerful with each version. In Windows 8 server powershell knowledge looks like it almost most know.

That's because PowerShell is not as well documented as the CMD interpreter - which makes sense, as CMD goes all the way back to the beginning of Windows NT itself.

PowerShell was designed as an alternative shell (similar to bash/bsh/ash/csh) for housekeeping/scripted commands primarily for the *server* side of Windows (specifically, Server 2003) - while it (like all the NT-based shell alternatives, from Microsoft and everyone else) is also usable on the desktop (XP and later, in the case of PowerShell), the documentation on the desktop side of things is rather sparse, compared to the server side of PowerShell's documentation.

(BSH is the original Bourne Shell, and has basically been superseded by bash.)

  On 31/10/2011 at 05:44, osuwildlifer said:

if you do it that way, the cmd window disappears as soon as the pings finish.

You ping, you see the response on the screen, and then the screen goes away. I can see special case scenarios where you may want the command window to persist, but for just finding out if a resource is reachable, what is the issue?

  On 05/11/2011 at 19:51, surrealvortex said:

You ping, you see the response on the screen, and then the screen goes away. I can see special case scenarios where you may want the command window to persist, but for just finding out if a resource is reachable, what is the issue?

The issue on all systems I've ever done that on is that the cmd window disappears too quickly to read the results. Is that not the case in your situation??

  On 05/11/2011 at 23:29, osuwildlifer said:

The issue on all systems I've ever done that on is that the cmd window disappears too quickly to read the results. Is that not the case in your situation??

ping address -t

;) Ping won't stop until you use Ctrl+C

Dunno about the people saying PS takes longer to load. It loads just as quick as CMD on my system at work. I'm constantly between the two, honestly. I think because I've been using CMD so long, that its just out of natural habit.

  On 05/11/2011 at 23:58, osuwildlifer said:

Ha! Well, you didn't specify that ;-) And the person who posted that method as a suggestion didn't either.

You can run any command from the search bar using either CMD or PS:

cmd /k ping google.com
powershell -noexit -command ping google.com

It opens a new CMD window and executes the command, but doesn't close afterwards.

Fun thing to do: Launch powershell.exe from CMD, or cmd.exe from PowerShell.

  On 07/11/2011 at 17:02, Aethec said:

You can run any command from the search bar using either CMD or PS:

cmd /k ping google.com
powershell -noexit -command ping google.com

It opens a new CMD window and executes the command, but doesn't close afterwards.

I can see in PATH being stored a variable that if you call CMD or command it executes powershell -noexit -command %s in Windows 8/

  On 08/11/2011 at 10:39, osuwildlifer said:

^ nice! Didn't know you could do that. (Y)

What he posted or calling cmd from Powershell and Powershell from cmd?

  • 11 months later...
  On 24/10/2012 at 23:12, Nicole Hamilton said:

Thank you for remembering my Hamilton C shell.

But a correction, if I may: Hamilton C shell is not a port of anything. I wrote every line from scratch myself for this product and first released it in December 1988, about 7 months before Brian Fox released his bash shell. It's much, much faster than bash on Windows for several reasons. First, I have a better compiler front end; it's faster at parsing statements and generating an optimized internal representation. Second, it's still the only multi-threaded Unix-style shell in existence. Third, it's written explicitly for Windows. It goes straight to the underlying Win32 API for everything. I don't even use the C runtime anywhere performance counts. I definitely don't use a big slow DLL like Cygwin uses to try to map Unix system calls onto Windows.

Also, news for those who might have been interested but were concerned about cost: For personal use, it's now just $89 and that covers all your personal devices. There's also a fully functional free demo version.

I would wager that the big reason that folks liked Cygwin was due to the backing of it by RedHat, Inc. (RHI).

However, you're right, Cygwin is huge and horribly unwieldy.

The Hamilton C Shell and other command shells, such as 4NT and TakeCommand, (and PowerShell, of course) are far from unwieldy.

I first read about the Hamilton C Shell back in the early days of NT, and I was referring specifically to your NT port of the Shell.

  On 27/10/2012 at 17:50, reaper1576 said:

I'm to used to DOS but I do need to learn how to use PowerShell. Anyone got any good links to stuff for learning PowerShell?

There are several Microsoft Press books on using PowerShell - the biggest criticism I have for *all* of them is that they are designed for server admins. (There is not a single PowerShell book for desktop admins, or even desktop usage - despite PowerShell itself having been included with desktop Windows since XP Service Pack 3, and addable to desktop Windows since XP Service Pack 2. What little I know about using PowerShell - which is very little - comes from Windows Server 2008R2/2012.)

For that matter, I'd like to be able to add a separate PowerShell prompt (ala Server 2012) to the QuickTask power users' menu, instead of having to right-click on a contextual menu in Explorer.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft Weekly: useful PowerToys modules, Microsoft Store updates, and video gen in Bing by Taras Buria This week's news recap is here, bringing you the latest stories from the Microsoft world, including useful PowerToys modules, fresh Windows 11 preview builds, AI video generation in Bing, Office updates, gaming news, and more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Gaming news Great deals to check Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. This week's Windows 11 section kicks off with some stats. StatCounter published its monthly report, showing that Windows 11 slowed its climb a little bit in May 2025. On the gaming side, however, things are much better, with Windows 11 occupying the majority of PCs on Steam. Now, here are some Windows updates you might have missed. Windows 11 versions 23H2 and 22H2 received KB5062170, a small emergency patch that resolved errors when installing recent updates. The patch is available only through the Microsoft Update Catalog, and the company recommends installing it only if your system experiences the 0xc0000098 code when installing the May 2025 security update. Finally, Microsoft released a new Defender update for Windows 11 and 10 installations, fresh recovery updates, and a script for recovering the inetpub folder, which showed up unannounced on systems in April. As Windows 10 is getting closer to the end of support, more companies are urging users to switch. AMD, Dell, and ASUS all urge users to prepare for the "mandatory Windows 11 upgrade," while other companies shamelessly poach Windows 10 users, luring them to Linux. To finish this week's Windows section, here is an ancient CD-burning app that made a surprising 64-bit comeback and now works on modern operating systems, including Windows 11. Windows Insider Program Here is what Microsoft released for Windows Insiders this week: Builds Canary Channel Build 27871 This week's Canary build introduced Start menu improvements (more Phone Link features), small taskbar tweaks, and a long list of various fixes to improve different parts of the operating system. Dev Channel Build 26200.5622 (KB5058512) This build brought new Click to Do features, a dedicated Settings section for Quick Machine recovery, improved Windows Widgets, a new spec card for the Settings app, and a few fixes here and there. Build 26200.5622 also contains a new "Your Device Info" card on the Settings Home page, which makes it easier to find your computer's specs with fewer clicks. Beta Channel Build 26120.4230 (KB5058506) This one is almost identical to build 26200.5622 from the Dev Channel. Release Preview Channel Nothing in the Release Preview Channel this week Besides new builds, Microsoft announced a new update for the Windows Photos app, which is now available to Windows Insiders in all channels. The update introduces AI-powered light controls (Relight), which let you place and control up to three light sources on your photo, and AI-powered search with natural language support. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) from Microsoft and third parties, delivering new features, security fixes, improvements, patches, and more. Microsoft announced a batch of new features for the Microsoft Store. The app is getting an improved Home page with personalized recommendations based on your recent activities, region, and deals. Search now considers additional information when ranking apps in the results, and a Copilot button lets you ask AI about a certain app. Microsoft also brags about significant performance improvements under the hood. This week, we had plenty of various Office updates. Microsoft 365, for one, is getting significant changes to its update channels beginning July 2025. Rollback support will be expanded to two months, the Semi-Annual Enterprise Channel (Preview) is being deprecated, and the Semi-Annual Enterprise Channel will be supported for eight months instead of the current 14. Microsoft also announced the general availability of the new Message Trace in the Exchange Admin Center in Exchange Online, some big updates for the new Outlook for Windows in the June 2025 update, and acknowledged a few issues with Outlook after a recent Calendar feature upgrade. Teams is also getting a "major" change for third-party app settings, and Word is getting SharePoint eSignature support. Bing received a surprising update this week. OpenAI's Sora video generator is now available for free in Bing Video Creator. Now, you do not have to pay for an OpenAI subscription to generate short videos using AI. Way to boost Bing stats, Microsoft! PowerToys Run, a useful and convenient launcher for Windows 10 and 11, recently received three new third-party modules that let you test your internet speed, download videos from hundreds of websites, and check out word definitions, usage, synonyms, and more. Microsoft announced some long-requested changes for Microsoft Edge, but only for those living in the EEA region. Windows will no longer annoy you with setting Edge as your default browser, and Windows Widgets will respect your default browser. Also, Microsoft will let you uninstall the Microsoft Store app, and Windows Search will be able to use other search providers. Speaking of browsers, Microsoft published a blog post that explained why Edge is a faster and smarter alternative to Chrome. If you are picking between the two, the article might help you make the choice (Google has an answer to that with its own article explaining that Chrome is now faster than ever). Also, the company released Edge 138 in the Beta Channel, bringing some important changes and new features, such as a new (sort of new) media control center, AI-powered history search, and more. Here are other updates and releases you may find interesting: Microsoft expanded LinkedIn's CEO role to manage Office apps. Microsoft announced the general availability of two new reasoning AI agents: Research and Analyst. Microsoft and Crowdstrike announced a partnership on threat actor naming. Microsoft will invest $400 million in Switzerland to bolster cloud and AI infrastructure. The annual Build conference is moving away from Seattle. Here are the latest drivers and firmware updates released this week: Intel 32.0.101.6876 non-WHQL with support for four new games and a single fix for intermittent display artifacts. Nvidia 576.66 Hotfix with patches for FC 25 crashes, video bugs in browsers, and more. In addition to that, Nvidia released a new version of the Nvidia App, which introduced a light theme (and automatic theme switching), support for more games, and some bug fixes. AMD Software Pro Edition 25 Q2 with support for Windows Server 2025, new Ryzen processors, and a few fixes. AMD Radeon Software 25.6.1 with the RX 9060 XT support and FSR 4 support for more games. On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. Hello Games continues relentlessly improving No Man's Sky. The game's latest update, "Beacon," was announced this week. It offers space explorers overhauled settlements, player overseer duties, and much more. The update is now available on all supported platforms, including Nintendo Switch 2. The Witcher 4 from CD Projekt RED might be a few years away. Still, at the State of Unreal 2025 keynote, the developers revealed a tech demo showcasing the capabilities of Unreal Engine 5 on the base PlayStation 5, which managed to pull it off at a solid 60 FPS. Nvidia announced new games that are now available in the GeForce NOW cloud streaming service (you have to own them to play them). The latest drop is a massive one: 25 new games, including FBC: Firebreak, Dune: Awakening, 7 Days to Die, DREADZONE, and more. Game Pass is also getting new games, and the first drop in June is also a pretty big one. You will soon get access to Kingdom: Two Crowns, EA Sports FC 25, FBC: Firebreak, Crash Bandicoot 4: It's About Time, The Alters, and more. Some games are leaving the service, so check out the full list here. Xbox Games Showcase 2025 is happening today. With the show kicking off in just a few hours, check out our recap of what to expect at the show and how to watch it. On the hardware side, we have a new Xbox Storage Expansion Card from Seagate. At a whopping $429.99 price tag, the new card offers an immense amount of space for your games, doubling that of the previously biggest expansion card. Now, you can get an Xbox Storage Expansion Card with 4TB. By the way, it costs as much as the 1TB Xbox Series S. Deals and freebies If you are looking for some new games at lower prices, check out this week's Weekend PC Game Deals, which covers multiple specials and discounts, including some freebies, such as Deathloop from the Epic Games Store. Other gaming news includes the following: Ubisoft is skipping its Forward game showcase for the first time since 2020. Valve released a new beta version of Steam for Linux to address sluggish update installations. Elden Ring Nighteign received its first update with reduced difficulty for solo runs. The Expanse TV show is getting a narrative-driven sci-fi action RPG. Black Myth: Wukong is coming to Xbox in August. Atomic Heart is getting a sequel and an MMO RPG spin-off. Great deals to check Every week, we cover many deals on different hardware and software. The following discounts are still available, so check them out. You might find something you want or need. Crucial X10 8TB Portable SSD - $439.99 | 44% off Apple 2025 MacBook Air 13-inch Laptop with M4 chip - $849 | 15% off 4TB WD_BLACK SN7100 PCIe Gen4 Solid-State Drive - $249.99 | 16% off SAMSUNG Q-Series Soundbar HW-Q900F - $997.99 | 29% off KEF Q Concerto Meta Three-Way Bookshelf Speaker - $1,199.99 | 14% off This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering a free member account or subscribing for extra member benefits, along with an ad-free tier option.
    • No, they aren't because they don't do with that online advertising, they sell with that "spots" in their store. Apple is not an online advertising company. The business model of Microsoft ads is exactly the same with Google ads. They both are ad companies which do online advertising and make though their sites user profiling. Just because Microsoft never managed to be as successful as Google in that business that doesn't mean they are not exactly what Google is. An online advertising company. Both Google, Microsoft and Amazon are online advertising companies. Apple isn't.
    • I'm lost without clippy.
    • Read the books, watched the show. Wish they'd continue the show.
    • By your logic Apple is an ad business too. https://ads.apple.com/
  • Recent Achievements

    • Week One Done
      Ricky Chan earned a badge
      Week One Done
    • Week One Done
      maimutza earned a badge
      Week One Done
    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      483
    2. 2
      +FloatingFatMan
      262
    3. 3
      snowy owl
      240
    4. 4
      ATLien_0
      227
    5. 5
      Edouard
      187
  • Tell a friend

    Love Neowin? Tell a friend!