PS Studio 2022 and ssh behavior not ideal

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 1 month 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
mar10c--
Posts: 59
Last visit: Mon May 22, 2023 6:53 am

Re: PS Studio 2022 and ssh behavior not ideal

Post by mar10c-- »

brittneyr wrote: Thu Dec 22, 2022 5:55 am Does a cmd prompt open when you run outside of PowerShell Studio in a PowerShell Console?
Running the form in Console invokes the form but none of the buttons to execute specific commands would work.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 9:46 am
Answers: 39
Been upvoted: 30 times

Re: PS Studio 2022 and ssh behavior not ideal

Post by brittneyr »

Just to clarify, the cmd prompt does not open when you run in a PowerShell Console?

Can you please provide a screenshot of what you are seeing when you run in a console?

Also, by 'buttons don't work', do you mean your form does not work?
Brittney
SAPIEN Technologies, Inc.
User avatar
mar10c--
Posts: 59
Last visit: Mon May 22, 2023 6:53 am

Re: PS Studio 2022 and ssh behavior not ideal

Post by mar10c-- »

brittneyr wrote: Fri Jan 06, 2023 2:46 pm Just to clarify, the cmd prompt does not open when you run in a PowerShell Console?

Can you please provide a screenshot of what you are seeing when you run in a console?

Also, by 'buttons don't work', do you mean your form does not work?
The command prompt does not open when run in a Powershell Console.
How do you want me to run it in the console?
The buttons to execute powershell commands using ssh hangs, the screenshot I posted in the beginning of this thread.
This command prompt behavior does not manifest on PS Studio 2019, but only on PS Studio 2022.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: PS Studio 2022 and ssh behavior not ideal

Post by Alexander Riedel »

There is some information missing here.
You say you are using PowerShell 7. Exactly which version?
Are you using the same PowerShell 7 version With SPS 2019 and SPS 2022?
You state that this does not happen in PowerShell Studio 2019. When was that? In 2019 or, say, last month? That is an important distinction.
Can you create a simple one button project illustrating the issue and post it here?
That would allow us to observe the effect and test various conditions rather than looking at static images and we can see your actual code.
If you do not want to post that in a public forum, you can use the support upload to send it directly to us.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
mar10c--
Posts: 59
Last visit: Mon May 22, 2023 6:53 am

Re: PS Studio 2022 and ssh behavior not ideal

Post by mar10c-- »

Alexander Riedel wrote: Sat Jan 07, 2023 9:39 am There is some information missing here.
You say you are using PowerShell 7. Exactly which version?
Are you using the same PowerShell 7 version With SPS 2019 and SPS 2022?
You state that this does not happen in PowerShell Studio 2019. When was that? In 2019 or, say, last month? That is an important distinction.
Can you create a simple one button project illustrating the issue and post it here?
That would allow us to observe the effect and test various conditions rather than looking at static images and we can see your actual code.
If you do not want to post that in a public forum, you can use the support upload to send it directly to us.
Powershell 7.2.6 is currently used.
Same Powershell 7.2.6 is used in SPS 2019 and SPS 2022
This does not happen in PS Studio 2019 (5.6.167.0) yesterday.
Project sent in Support upload
User avatar
mar10c--
Posts: 59
Last visit: Mon May 22, 2023 6:53 am

Re: PS Studio 2022 and ssh behavior not ideal

Post by mar10c-- »

We can go ahead close this. changing my code from (Get-NetIPAddress | Where-Object { $_.AddressState -eq "Preferred" -and $_.PrefixOrigin -eq "Manual"}).IPAddress or ((Test-Connection $env:computername -Count 1).ipv4address).ipaddresstostring to ((ipconfig | findstr [0-9].\.)[0]).Split()[-1] fixed it.
This topic is 1 year and 1 month 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.