To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/IA1PR19MB639513B1F53DC593DF09CCA4883E2%40IA1PR19MB6395.namprd19.prod.outlook.com.
Different quoting standards between cmd.exe and PowerShell. There is an option to use “native command quoting” in PS 7.2+, but not in PS 5.1.
Something like this should work:
msiexec.exe /i ScanAssistantInstaller.msi 'CLIENT_CERTIFICATE="-----BEGIN CERTIFICATE-----PEMgoop -----END CERTIFICATE-----" '
…and this is why I tend to use single-quotes except when I NEED double-quotes for interpolation…
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com>
On Behalf Of Kurt Buff
Sent: Tuesday, April 2, 2024 6:46 PM
To: ntpowe...@googlegroups.com
Subject: [ntpowershell] Frustration with MSI
This works in cmd shell locally, but not locally in powershell, and especially not remotely in powershell:
--
This is what I get for reading email top-to-bottom. 😊
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com>
On Behalf Of Kurt Buff
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CADy1Ce46SKfcfNOdk1XO1qXOE7bCDnDg5rE0V53ZpJU8AY9LYg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/b4b15a2c89e0468092ae75a387cd5626%40smithcons.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/510dcd6cce014e968362125526502d2c%40smithcons.com.