Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
Set-Variable -Name "Greeting" -Value "Hello"
Set-Variable -Name "Location" -Value "World"

echo $Greeting $Location

https://docs.microsoft.com/en-us/powershell/scripting/learn/using-variables-to-store-objects?view=powershell-7

https://ss64.com/ps/invoke-expression.html

$Location = "World"
$Greeting = "ECHO HELLO $Location"
Invoke-Expression $Greeting

Global Vars:

https://stackoverflow.com/a/27848128/5079799

$global:MSPrintScreenActive = $null
FUNC... $global:MSPrintScreenActive = 'TRUE'
  • No labels