With double quotes (“), variables in the string are expanded.
write-output "Starting engine from $pshome ..."
Starting engine from C:\Windows\System32\WindowsPowerShell\v1.0 ...
Write-Output "the Powershell host is $($host.name)"
With double quotes (“), variables in the string are expanded.
write-output "Starting engine from $pshome ..."
Starting engine from C:\Windows\System32\WindowsPowerShell\v1.0 ...
Write-Output "the Powershell host is $($host.name)"
Frenquently asked questions about everyday real problems in PowerShell
No comments:
Post a Comment