Scripts working in PrimalScript - but not in PoSH

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 15 years and 7 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
calliey
Posts: 4
Last visit: Mon Nov 17, 2014 9:19 pm

Scripts working in PrimalScript - but not in PoSH

Post by calliey »

Has anyone else experienced this problem? I have a script I spent a bit of time on, and it works great in PrimalScript, but when I run it from a powershell window - it gets different results. What is going on here?It is confusing me to no end though - why would it work in one environment and not the other? Does PrimalScript have a 'different' POSH shell when you hit F7 to run your script? The computer it is running on is a Windows XP Pro machine with all the latest security patches and updates. If anyone else has seen this - has a solution for me I would love to know. If you need the script posted, I can do that as well. Thanks,Chris
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Scripts working in PrimalScript - but not in PoSH

Post by Alexander Riedel »

That is confusing, even for us, since normally it is the other way around, if there is a problem :-)
PrimalScript does host the PowerShell engine itself, but except for the obvious user interface difference everything should run the same.

Please send the script to support@sapien.com (inside a zip file),
I will forward it to our resident PowerShell expert to see what is going on.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
calliey
Posts: 4
Last visit: Mon Nov 17, 2014 9:19 pm

Scripts working in PrimalScript - but not in PoSH

Post by calliey »

Alex, Thanks for your quick response - the email was sent from my work account: Christopher_Alliey@Discovery.com (in case you have a filter on) :) Thanks,Chris
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Scripts working in PrimalScript - but not in PoSH

Post by Alexander Riedel »

Got it. I forwarded your script to Jeffery Hicks to see what he can find out.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Scripts working in PrimalScript - but not in PoSH

Post by Alexander Riedel »

I forwarded Jeff's reply to you. Please let us know if that is of any help.
Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
calliey
Posts: 4
Last visit: Mon Nov 17, 2014 9:19 pm

Scripts working in PrimalScript - but not in PoSH

Post by calliey »

I've already read the reply - thank you for your assistance.Seems like you are up at all hours of the day / night answering questions.Thanks again!Chris
This topic is 15 years and 7 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.