Running the form in Console invokes the form but none of the buttons to execute specific commands would work.
PS Studio 2022 and ssh behavior not ideal
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.
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.
Re: PS Studio 2022 and ssh behavior not ideal
Re: PS Studio 2022 and ssh behavior not ideal
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?
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.
SAPIEN Technologies, Inc.
Re: PS Studio 2022 and ssh behavior not ideal
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.
- Alexander Riedel
- Posts: 8279
- Last visit: Sun May 28, 2023 9:24 am
- Been upvoted: 30 times
Re: PS Studio 2022 and ssh behavior not ideal
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.
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.
SAPIEN Technologies, Inc.
Re: PS Studio 2022 and ssh behavior not ideal
Powershell 7.2.6 is currently used.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.
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
Re: PS Studio 2022 and ssh behavior not ideal
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.