User Tools

Site Tools


os:windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
os:windows:powershell [2016-09-05 23:05] rootos:windows:powershell [2018-12-04 09:16] (current) root
Line 1: Line 1:
 ====== PowerShell ====== ====== PowerShell ======
  
-== Temporary add a directory to the PATH variable ==+===== Basic ===== 
 + 
 +==== Temporary add a directory to the PATH variable ====
  
 <code> <code>
Line 7: Line 9:
 </code> </code>
  
-== Parse integer ==+==== Parse integer ====
  
 <code> <code>
Line 20: Line 22:
 </code> </code>
  
-== Links == +==== Multidimensionale Arrays ====
- +
-  * [[http://www.magnus.de/tabelle/formatierungsoption-fuer-f.html]] +
- +
- +
-== Multidimensionale Arrays ==+
  
 <code> <code>
Line 44: Line 41:
 g g
 PS C:\> PS C:\>
 +</code>
 +
 +===== Scheduled Tasks =====
 +
 +==== Change Priority ====
 +
 +This will only change the priority setting and keep the other settings. The password of the task user is required.
 +
 +<code>
 +$task = Get-ScheduledTask -TaskName "ThisIsMyTask"
 +$settings = $task.Settings
 +$settings.Priority = 5
 +Set-ScheduledTask -TaskName $task.TaskName -Settings $settings -User $task.Principal.UserId -Password "asdf1234"
 </code> </code>
os/windows/powershell.1473109537.txt.gz · Last modified: 2016-09-05 23:05 by root