| index | |||||||||||||||||||||||||||||
| * | PowerShell | ||||||||||||||||||||||||||||
| 3/4/26 | index | ||||||||||||||||||||||||||||
| Home | https://docs.microsoft.com/en-us/learn/modules/introduction-to-powershell/2-what-is-powershell | ||||||||||||||||||||||||||||
| Install / Debian | Features | Built-in help system | |||||||||||||||||||||||||||
| Pkg Mgt | Pipeline | ||||||||||||||||||||||||||||
| Aliases | |||||||||||||||||||||||||||||
| PowerShell differs from a traditional command-line shell in a few ways: | |||||||||||||||||||||||||||||
| It operates on objects over text | In a command-line shell, you have to run scripts whose output and input might differ. | So you end up spending time formatting the output and extracting the data you need. | |||||||||||||||||||||||||||
| It has cmdlets. | Commands in PowerShell are called cmdlets | By contrast, in PowerShell you use objects as input and output. | |||||||||||||||||||||||||||
| It has many types of commands: | Unlike many other shell environments, in PowerShell, cmdlets | That means you spend less time formatting and extracting. | |||||||||||||||||||||||||||
| aliases | are built on a common runtime rather than separate executables. | ||||||||||||||||||||||||||||
| cmdlets | This characteristic provides a consistent experience in parameter parsing and pipeline behavior. | ||||||||||||||||||||||||||||
| functions | Cmdlets typically take object input and return objects. The core cmdlets in PowerShell are built in .NET Core and are open source. | ||||||||||||||||||||||||||||
| scripts | You can extend PowerShell by using more cmdlets, scripts, and functions from the community and other sources. | ||||||||||||||||||||||||||||
| native executables | Or you can build your own cmdlets in .NET Core or PowerShell. | ||||||||||||||||||||||||||||
| Installation | https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.2 | ||||||||||||||||||||||||||||
| PowerShell extension for Visual Studio Code | We recommend that you use the PowerShell extension for Visual Studio Code to author your PowerShell scripts and to run the commands in this module. | ||||||||||||||||||||||||||||
| PowerShell extension for Visual Studio Code | This extension lets you run commands and also helps you with snippets, code completion, and syntax highlighting. | ||||||||||||||||||||||||||||
| The Windows PowerShell ISE | |||||||||||||||||||||||||||||
| https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/ise/introducing-the-windows-powershell-ise?view=powershell-7.2#:~:text=The%20Windows%20PowerShell%20Integrated%20Scripting,Windows%2Dbased%20graphic%20user%20interface. | |||||||||||||||||||||||||||||
| Note: | To copy/paste in the powershell window | ||||||||||||||||||||||||||||
| Windows Terminal (Windows 11 default) | This is the modern tabbed terminal that PowerShell usually opens in. | ||||||||||||||||||||||||||||
| Copying text | |||||||||||||||||||||||||||||
| • | Select text with your mouse — | just click and drag. | |||||||||||||||||||||||||||
| • | As soon as you release the mouse, | press Ctrl+C. | |||||||||||||||||||||||||||
| • | The text goes straight to the clipboard. | ||||||||||||||||||||||||||||
| Pasting text | |||||||||||||||||||||||||||||
| • | Press Ctrl+V to paste into any window | (PowerShell, Notepad, browser, etc.). | |||||||||||||||||||||||||||
| Notes | |||||||||||||||||||||||||||||
| Selection is normal — | no special “mark mode.” | ||||||||||||||||||||||||||||
| • | Right‑click does not copy by default | (it opens the context menu). | |||||||||||||||||||||||||||