Last active
September 16, 2016 17:46
-
-
Save BenjaminArmstrong/bb9b0b1c5df4ba900e6f4410e7ae5e24 to your computer and use it in GitHub Desktop.
PowerShell Direct Tips - Variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$foo = "7" | |
Invoke-Command -VMName "Test" { | |
param($localfoo) | |
write-host $localfoo | |
} -ArgumentList $foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$foo = "7" | |
Invoke-Command -VMName "Test" { | |
write-host $Using:foo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment