cmd vs powershell


  1. Posts : 481
    Windows 10 Pro
       #1

    cmd vs powershell


    Greetings.
    As a normal PC-geek I don't know how, when and why I should use Powershell instead of cmd. Or in another way, why has Microsoft changed cmd to Powershell in the right-click menu? What are the benefits?

    Or has Microsoft just done this to make fun of us, that don't know all the commands to Powershell ?

    I have found (and used) Brinks good guide to make the cmd rearrive at the menu instead of Powershell, but what am I missing by not learning Powershell???
      My Computer


  2. Posts : 5,452
    Windows 11 Home
       #2

    MS just wants more people to use it, thus it has brought it to the foreground.
    I always remove it, since mostly only malware uses it, especially ransomware.
    Powershell is a great tool for system admins, since it allows to do more and faster.
      My Computer


  3. Posts : 284
    Windows 10 Pro 64-bit
       #3

    I find PS has this lag to it on startup. The Windows pops up almost immediately, but there is a delay as to when you can start typing anything. Witnessed it on multiple PCs. I hate it for that reason alone.
      My Computers


  4. Posts : 3,257
    Windows 10 Pro
       #4

    If you don't know why you would use powershell vs cmd, then you probably only need cmd. However, there may be times (especially if you're following a tutorial on here) where they will give you commands that are powershell commands.

    There are many subsystems in Windows that have Powershell interfaces for command scripting. So you have to issue commands from Powershell for these.

    As an aside, you can enter most cmd commands in powershell and they'll work just fine. For a lot of people you can use them interchangeably.
      My Computer


  5. Posts : 323
    Windows 10 (2), Win 8.1 (1), Win 7 (1)
       #5

    Powershell is tremendously more powerful and complex. It requires a steep learning curve especially if you are not familiar with an object oriented programming language. There are some things in CMD prompt that do not work in Powershell. If you are using fairly basic commands and batch files, CMD will do although it can do some fairly complicated stuff as well. The biggest problem I have found with Powershell is finding appropriate documentation for it although there are thousands of examples on the net to which you can refer.

    JohnD
      My Computer


  6. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #6

    Mystere said:
    As an aside, you can enter most cmd commands in powershell and they'll work just fine....
    That includes the command CMD itself, which will run a command prompt within the PowerShell window. Type EXIT to get back to PowerShell when you're done...
      My Computers


  7. Posts : 2,068
    Windows 10 Pro
       #7

    You can run the same commands in powershell as you can in cmd, but you can also run a ton more powershell commands.

    I think MS changed it because
    1). More people are using powershell
    2). MS is encouraging those who don't use PS, to start using it.
      My Computers


  8. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #8

    johnpd said:
    The biggest problem I have found with Powershell is finding appropriate documentation for it...
    Microsoft Docs: PowerShell Documentation

    MSDN: PowerShell Reference

    MSDN: Getting Started with Windows PowerShell
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:01.
Find Us




Windows 10 Forums