This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How would one specify Powershell version in CA?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 15, 2022
12:39 PM
How would one specify Powershell version in CA?
I'm having a problem in my poweshell script, so to make sure it's using the right version I added
Trace-Info -LogMessage "Powershell version: $($host.version)"
and the output when I ran the install was "Powershell version: 1.0.0.0". I added the System Search to get POWERSHELLVERSION, and that comes back with "2.0". When I run "Write-Host "Powershell version: $($host.version)"" I get "Powershell version: 5.1.22000.832"
Can someone help me understand why this is, and if there's any way to configure my CA to run in the latest installed powershell version?
(0) Replies