Cannot initialize PowerShell engine Powershell Studio 2022

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
This topic is 1 year and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
electromagic
Posts: 1
Last visit: Wed Sep 14, 2022 11:59 pm

Cannot initialize PowerShell engine Powershell Studio 2022

Post by electromagic »

Good day, have the problem with trial version of SAPIEN Powershell Studio 2022 when trying to run any script from the "Run" button. Powershell version is 5.1 (PSVersion 5.1.19041.1682).
Trying it on worksation under Windows 11 Pro x64, and VM under Windows 10 Pro x64.
Workstation:
Product: PowerShell Studio 2022 (64 Bit)
Build: v5.8.207
OS: Windows 10 Pro (64 Bit)
Build: v10.0.22000.0

VM:
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19044.0

A product error log at:
C:\Users\[User]\AppData\Roaming\SAPIEN\PowerShell Studio\ErrorLog.txt
is empty (doesnt exist).
>> Running (*.ps1) Script...
>> Platform: V5 64Bit (STA)
ERROR: Cannot initialize PowerShell engine
*** PowerShell Script finished. ***
>> Execution time: < 1 second
>> Script Ended
Windows Powershell logs look like that:
Engine state is changed from None to Available. 

Details: 
	NewEngineState=Available
	PreviousEngineState=None

	SequenceNumber=17

	HostName=PrimalScriptHostImplementation
	HostVersion=3.0.0.0
	HostId=e8e4d96a-7c63-48cc-9734-df8411692ac2
	HostApplication=C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\Debugger64\scriptdriver64.exe -noprofile -V5 -p 34541 -d C:\Users\*\Desktop\powershell\oneliners -e PoshHostSTA -s C:\Users\*\Desktop\powershell\oneliners\convert-to-diff-numbers.ps1
	EngineVersion=5.1.22000.613
	RunspaceId=f338b5d7-73e3-40d3-a30b-89328ae063be
	PipelineId=
	CommandName=
	CommandType=
	ScriptName=
	CommandPath=
	CommandLine=
At the same time trial version of SAPIEN Powershell Studio 2020 was worked without any problems on the same computers.

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.172
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Cannot initialize PowerShell engine Powershell Studio 2022

Post by Alexander Riedel »

Where are you located, geographically speaking? And what are your computer's language / culture settings?
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 1 year and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.