Cannot instantiate PowerShell V7 object error when i run $PSVersionTable

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
cjones@vcea.org
Posts: 2
Last visit: Tue May 10, 2022 8:30 pm

Cannot instantiate PowerShell V7 object error when i run $PSVersionTable

Post by cjones@vcea.org »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: 5.8.206
Operating system: Win 10
PowerShell version(s): 7.2.3

*** Please add details and screenshots as needed below. ***
I get an error when trying to switch Powershell Studio to use PS 7. I installed the runtime andd PS 7 but i cant get it to work as I get

>> Running (testplay.ps1) Script...
>> Platform: V7 64Bit (STA)
Cannot instantiate PowerShell V7 object. Please verify that the desired PowerShell version is installed.The I/O operation has been aborted because of either a thread exit or an application request>> Script Ended



DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
Alexander Riedel
Posts: 7996
Last visit: Fri Jun 24, 2022 8:22 am
Answers: 12
Been upvoted: 24 times

Re: Cannot instantiate PowerShell V7 object error when i run $PSVersionTable

Post by Alexander Riedel »

Do you have the .NET 6 Desktop runtime installed?
Alexander Riedel
SAPIEN Technologies, Inc.