Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
powershell [2021/12/19 17:14] – [Powershell] 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 10: | Line 10: | ||
* [[https:// | * [[https:// | ||
* [[powershell_git|Powershell Git]] | * [[powershell_git|Powershell Git]] | ||
+ | |||
+ | * [[https:// | ||
Line 21: | 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 37: | 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 85: | Line 112: | ||
* [[qnd:Sign Powershell Script]] | * [[qnd:Sign Powershell Script]] | ||
+ | |||
+ | ====== Related ====== | ||
+ | * [[azure: | ||
+ |