PowerShell Basics

Diese Seite gibt es auch in Deutsch

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:

powershell-basics-2.jpg?cache=2017-09-1217-03-30500210

 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

PowerShell Log-Files: Logging into a textfile - write to file

created: 2022-05-05 from Bernhard

Log files in PowerShell can be created via the Out-File command, via a custom function, or via PowerShell's built-in Transcript. ... continue reading

PowerShell Loops and Array

PowerShell Loops and Array

created: 2022-05-02 from Bernhard

An array stores multiple values, similar to a 2-column table. ... continue reading

Preview PowerShell text file and csv read / write

PowerShell text file and csv read / write

created: 2022-05-02 from Bernhard

PowerShell text file and csv read / write ... continue reading


Questions / Comments