os:windows:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:windows:powershell [2014-12-18 20:08] – external edit 127.0.0.1 | os:windows:powershell [2018-12-04 09:16] (current) – root | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell ====== | ====== PowerShell ====== | ||
- | == Verzeichnis temporär zu PATH-Variable hinzufügen | + | ===== Basic ===== |
- | $ENV:PATH += "; | + | ==== Temporary add a directory to the PATH variable ==== |
- | == Links == | + | < |
+ | $ENV:PATH += "; | ||
+ | </ | ||
- | * [[http:// | + | ==== Parse integer ==== |
+ | < | ||
+ | PS H:\> $x = Read-Host | ||
+ | a | ||
+ | PS H:\> [int32]:: | ||
+ | False | ||
+ | PS H:\> $x = Read-Host | ||
+ | 5 | ||
+ | PS H:\> [int32]:: | ||
+ | True | ||
+ | </ | ||
- | == Multidimensionale Arrays == | + | ==== Multidimensionale Arrays |
< | < | ||
Line 29: | Line 41: | ||
g | g | ||
PS C:\> | PS C:\> | ||
+ | </ | ||
+ | |||
+ | ===== Scheduled Tasks ===== | ||
+ | |||
+ | ==== Change Priority ==== | ||
+ | |||
+ | This will only change the priority setting and keep the other settings. The password of the task user is required. | ||
+ | |||
+ | < | ||
+ | $task = Get-ScheduledTask -TaskName " | ||
+ | $settings = $task.Settings | ||
+ | $settings.Priority = 5 | ||
+ | Set-ScheduledTask -TaskName $task.TaskName -Settings $settings -User $task.Principal.UserId -Password " | ||
</ | </ |
os/windows/powershell.1418929733.txt.gz · Last modified: 2016-09-05 23:05 (external edit)