PowerShell - System Administration
What will be the output of the following PowerShell commands?
$env:GREETING = 'Hello' Write-Output "$env:GREETING, World!"
$env:GREETING = 'Hello' Write-Output "$env:GREETING, World!"
$env:GREETING = 'Hello' sets the environment variable GREETING to 'Hello'.Write-Output "$env:GREETING, World!" expands $env:GREETING to 'Hello', so the output is 'Hello, World!'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions