powershell:scriptinscript
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
powershell:scriptinscript [2018/01/02 17:30] – angelegt ronny | 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:// | Quelle: [[https:// | ||
{{tag> | {{tag> |
powershell/scriptinscript.txt · Zuletzt geändert: 2018/01/02 17:31 von ronny