cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Azmaeus
Level 6

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?

Labels (1)
0 Kudos
(0) Replies