PowerShell Basics

Windows PowerShell is simply described as an input window in which certain commands can be executed via text input. In addition, several commands or processes can be started via a text file.: Create and run Windows PowerShell script
PowerShell is considered the successor of the command prompt and thus of Windows Batch. Scripts that were originally written in VBScript are now mostly implemented in PowerShell.

Function and terms

Basically, the functionality is the same as in the command prompt: enter command and press ENTER. Commands that work in the command prompt can usually also be called in PowerShell. In PowerShell, it does not matter whether the commands are written in upper or lower case. The commands in PowerShell are called Cmdlets. For some MS-DOS commands (command prompt) aliases to the Windows PowerShell cmdlets exist. That is, for example, if the command "dir" is invoked, PowerShell launches the following command: Get-ChildItem. So Get-ChildItem also listens for the name dir.
Aliases can be invoked with the Get-Alias command. The name of PowerShell commands is composed of the combination "verb" - "noun", so "action" and the "name" for what the action should be executed, as an example: get-help for get-help. An overview of the commands gives the following article.: Windows PowerShell Commands:Overview; All available commands can be listed using Get-Command and help can be called using get-help CommandName, see: PowerShell Help | Get-Help.

PowerShell Konsole

The PowerShell console can be launched by simply searching for the term "PowerShell":


For certain commands, especially for adjusting operating system settings, Windows PowerShell must be started as administrator:


 If you start PowerShell more often, you can pin it to the taskbar:

read next: PowerShell Help | Get-Help


positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-05-02 from Bernhard 🔔

Top articles in this section

PowerShell Log-Files: Logging into a textfile - write to file
Log files in PowerShell can be created via the Out-File command, via a custom function, or via PowerShell's built-in Transcript.

PowerShell Loops and Array
An array stores multiple values, similar to a 2-column table.

PowerShell text file and csv read / write
PowerShell text file and csv read / write

Questions / Comments