Hello. I have a query below:
Get-ChildItem -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall' | Get-ItemProperty | where {$.UninstallString -notlike '}' -and $.UninstallString -notlike '"'} | select UninstallString,Value
Output example for UninstallString key: C:\Program Files\WinRAR\uninstall.exe param1,param2
I would like to put " " around the value for the sample result above.
IE. Update UninstallString key to have a value of: "C:\Program Files\WinRAR\uninstall.exe" param1,param2
Thank you in advance.