Can anyone tell me what difference, if any, there is between the following PowerShell commands:
Set-ItemProperty -Path "$($var)" -Name $var2 -Value $var3
and
Set-ItemProperty -Path ("$var") -Name $var2 -Value $var3
$var is a registry location, i.e. HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion...
I have also seen both used for the Path parameter in New-ItemProperty