Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| powershell [2021/11/03 22:12] – [Interactive Mode] mgupton | powershell [2024/11/08 14:27] (current) – [History] mgupton | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Powershell====== | ======Powershell====== | ||
| * {{ : | * {{ : | ||
| - | * [[qnd: | + | * [[powershell:qnd: |
| * [[Powershell Configuration]] | * [[Powershell Configuration]] | ||
| * [[Running Powershell Scripts]] | * [[Running Powershell Scripts]] | ||
| Line 9: | Line 9: | ||
| * [[Powershell Examples]] | * [[Powershell Examples]] | ||
| * [[https:// | * [[https:// | ||
| + | * [[powershell_git|Powershell Git]] | ||
| + | |||
| + | * [[https:// | ||
| Line 20: | Line 23: | ||
| * Use '' | * Use '' | ||
| + | * Use '' | ||
| + | * Use '' | ||
| + | * Use '' | ||
| + | * Alternatively, | ||
| + | * Use '' | ||
| + | * Use '' | ||
| ======Operators====== | ======Operators====== | ||
| * [[https:// | * [[https:// | ||
| ======Variables====== | ======Variables====== | ||
| + | * '' | ||
| + | ==== Basic Scalar Example ==== | ||
| <code powershell> | <code powershell> | ||
| $fname = " | $fname = " | ||
| Line 36: | Line 46: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | ====== Input/ | ||
| + | |||
| + | Example of using Out-GridView for handy way to get output | ||
| + | <code powershell> | ||
| + | Get-Alias | Out-GridView | ||
| + | </ | ||
| + | |||
| + | Example of selecting a property from objects | ||
| + | <code powershell> | ||
| + | $files = ls .\* -Exclude @(" | ||
| + | |||
| + | $files | select -Property FullName | ||
| + | |||
| + | # Alternative: | ||
| + | $files | foreach {$_.FullName} | ||
| + | </ | ||
| ======Conditionals====== | ======Conditionals====== | ||
| Line 84: | Line 112: | ||
| * [[qnd:Sign Powershell Script]] | * [[qnd:Sign Powershell Script]] | ||
| + | |||
| + | ====== Related ====== | ||
| + | * [[azure: | ||
| + | |||