Benutzer-Werkzeuge

Webseiten-Werkzeuge


powershell:scriptinscript

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

powershell:scriptinscript [2018/01/02 17:30]
ronny angelegt
powershell:scriptinscript [2018/01/02 17:31] (aktuell)
ronny
Zeile 2: Zeile 2:
  
 test-helloworld.ps1:​ test-helloworld.ps1:​
-[code Powershell]+<code Powershell>
 [CmdletBinding()] [CmdletBinding()]
 param param
Zeile 10: Zeile 10:
  
 Write-Host "Hallo $MyPar!"​ Write-Host "Hallo $MyPar!"​
-[/code]+</code>
  
 test-runscript.ps1:​ test-runscript.ps1:​
-[code Powershell]+<code Powershell>
 param() param()
  
Zeile 27: Zeile 27:
  
 Invoke-Command -ScriptBlock $Script -ArgumentList $zzz Invoke-Command -ScriptBlock $Script -ArgumentList $zzz
-[/code]+</code>
  
 Quelle: [[https://​stackoverflow.com/​questions/​28234509/​powershell-splatting-the-argumentlist-on-invoke-command|Link]],​ [[https://​stackoverflow.com/​questions/​27992485/​importing-scriptblock-from-file|Link]],​ [[https://​docs.microsoft.com/​en-us/​powershell/​module/​microsoft.powershell.core/​about/​about_splatting?​view=powershell-5.1|Splatting]] Quelle: [[https://​stackoverflow.com/​questions/​28234509/​powershell-splatting-the-argumentlist-on-invoke-command|Link]],​ [[https://​stackoverflow.com/​questions/​27992485/​importing-scriptblock-from-file|Link]],​ [[https://​docs.microsoft.com/​en-us/​powershell/​module/​microsoft.powershell.core/​about/​about_splatting?​view=powershell-5.1|Splatting]]
  
 {{tag>​[Powershell Invoke-Command Script Splatting]}} {{tag>​[Powershell Invoke-Command Script Splatting]}}
powershell/scriptinscript.txt · Zuletzt geändert: 2018/01/02 17:31 von ronny