Notes
  • Welcome!
  • Windows Shells
    • Introduction
    • Command Prompt
      • Basics
      • Host Enumeration
      • Files & Directories
      • Environment Variables
      • Managing Services
      • Scheduled Tasks
      • Help
    • PowerShell
      • PowerShell vs. CMD
      • Basics
      • CmdLets & Modules
      • User & Group Management
      • Files & Dirs
      • Finding & Filtering
      • Services
      • Registry
      • Windows Event Log
      • Networking Management
      • Web Interaction
      • Scripting
      • Help
  • Windows
    • Commands
    • NTFS
  • APISEC
    • API Testing
      • Recon
      • Endpoint Analysis
      • Finding Security Misconfigurations
      • Authentication Attacks
      • Exploiting API Authorization
        • BOLA
        • BFLA
      • Improper Assets Management
      • Mass Assignment Attacks
      • SSRF
      • Injection Attacks
      • Evasion & Chaining
    • API Authentication
      • Authentication Types
      • OAuth Actors
      • OAuth Interaction Patterns
      • JSON Web Tokens
      • Claims
      • APIs & Gateways
  • PostSwigger
    • Web LLM Attacks
      • Overview
      • Exploiting LLM APIs, function, & Plugins
      • Indirect Prompt Injection
      • Leaking Sensitive Data
      • Defending Against LLM Attacks
    • JWT Attacks
      • JWTs
      • Attacks
        • Flawed Signature Verfication
        • Brute-forcing Secret Keys
        • JWT Header Parameter Injections
        • Algorithm Confusion
      • Prevention
    • OAuth
      • General Information
      • Exploiting OAuth Authentication Flaws
        • Flaws in Client Application
        • Flaws in the OAuth Service
      • OpenID
  • Red Teaming LLM Applications
    • LLM Vulnerabilities
    • Red Teaming LLMs
    • Red Teaming at Scale
    • Red Teaming LLMs with LLMs
    • Red Teaming Assessment
  • Fin
    • Course 1: Basics
      • Stocks
        • General Information
        • Shares
        • Stock Basics
      • Bonds
        • General Information
        • Components
        • Valuation
      • Markets
        • What is the Stock Market
        • What is the FED
    • Course 2: Stock Investing
  • Other
    • Learning Resources
Powered by GitBook
On this page
  1. Windows Shells
  2. PowerShell

PowerShell vs. CMD

PreviousPowerShellNextBasics

Last updated 1 year ago

Feature
CMD
PowerShell

Language

Batch and basic CMD commands only.

PowerShell can interpret Batch, CMD, PS cmdlets, and aliases.

Command utilization

The output from one command cannot be passed into another directly.

The output from one command can be passed into another directly.

Command Output

Text only

PowerShell outputs in object formatting.

Parallel Execution

CMD must finish one command before running another.

PowerShell can multi-thread commands to run in parallel.

PS Access

PowerShell is an and uses the .NET framework which has made it capable of utilising an object-based model of interaction and output. It has powerful logging capabilities, so if we need to be more stealthy, we should utilize CMD.

PowerShell can be accessed through CMD, as well as via the Windows Terminal which will soon become the default terminal emulator for Windows, as everything can be accessed through there. PowerShell Integrated Scripting Environment (ISE) is like a PowerShell IDE for creating scripts.

open-source project
The Windows terminal emulator.