Cannot instantiate PowerShell V5 object

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.
This topic is 6 years and 4 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.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Cannot instantiate PowerShell V5 object

Post by Alexander Riedel »

Please select PowerShell V5 in the ribbon and see if that works.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
darkprofit
Posts: 15
Last visit: Tue Jan 07, 2020 5:45 am

Re: Cannot instantiate PowerShell V5 object

Post by darkprofit »

Nope same issue this time it says "Cannot instantiate PowerShell V5 object: 80070002>> Script Ended"

Script is write-host "Test."
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Cannot instantiate PowerShell V5 object

Post by Alexander Riedel »

80070002 means "File not found".
So that means that either the dll you previously registered successfully is no longer there (check please)
or that you selected 32 bit instead 64 bit since you only re-registered the 64 bit part
or, more likely, one of the dependencies is missing or corrupt.

https://github.com/isindicic/DependencyWalker.Net

This might help you determine what disappeared from your system. It is pretty rare but on occasion a .NET framework installation gets corrupted.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
darkprofit
Posts: 15
Last visit: Tue Jan 07, 2020 5:45 am

Re: Cannot instantiate PowerShell V5 object

Post by darkprofit »

I'll try that. Soon I will be reimaging the machine that should take of the issue.
This topic is 6 years and 4 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.