Forrest logo
tool overview
On this page you find all important commands for the CLI tool powershell. If the command you are looking for is missing please ask our AI.

powershell

PowerShell is a command-line shell and scripting language developed by Microsoft specifically for system administration and automation tasks.

It is built on top of the .NET framework and provides a powerful environment for managing Windows-based systems.

PowerShell uses a command-line interface where users can type in commands to perform various tasks.

Users can create scripts using PowerShell's scripting language, which includes features such as flow control, variables, loops, functions, and error handling.

PowerShell offers access to a wide range of system management tools, such as Windows Management Instrumentation (WMI), Active Directory, and Registry.

It also provides modules for managing common Microsoft products like SharePoint, Exchange, and SQL Server.

PowerShell supports both interactive command-line usage and the execution of scripts, making it suitable for both one-time tasks and repetitive operations.

It embraces the concept of "cmdlets," which are small and focused commands that can be combined to create powerful pipelines.

PowerShell is highly extensible, allowing users to create their own cmdlets, functions, and modules for reusability and automation.

With PowerShell, system administrators can manage both local and remote systems, making it a versatile and efficient tool for managing Windows infrastructure.

List of commands for powershell:

  • powershell:tldr:08618 powershell: Prevent a shell from exit after running startup commands.
    $ powershell -NoExit
    try on your machine
    explain this command
  • powershell:tldr:183dd powershell: Determine how an output from PowerShell is formatted.
    $ powershell -OutputFormat ${select}
    try on your machine
    explain this command
  • powershell:tldr:2f2d3 powershell: Start an interactive shell session.
    $ powershell
    try on your machine
    explain this command
  • powershell:tldr:4e95f powershell: Start a session with a specific version of PowerShell.
    $ powershell -Version ${version}
    try on your machine
    explain this command
  • powershell:tldr:568c7 powershell: Start an interactive shell session without loading startup configs.
    $ powershell -NoProfile
    try on your machine
    explain this command
  • powershell:tldr:cb6ed powershell: Execute a specific script.
    $ powershell -File ${path-to-script-ps1}
    try on your machine
    explain this command
  • powershell:tldr:e1acb powershell: Execute specific commands.
    $ powershell -Command "${echo 'powershell is executed'}"
    try on your machine
    explain this command
  • powershell:tldr:fa430 powershell: Describe the format of data sent to PowerShell.
    $ powershell -InputFormat ${select}
    try on your machine
    explain this command
tool overview