Product, version and build: PowerShell Studio 2018 v5.5.152
32 or 64 bit version of product: 64bit
Operating system: Windows 10 1709
32 or 64 bit OS: 64bit
I've converted a script to a Windows Application using the SAPIEN PowerShell V2 Host (and also tried V3).
I've set the program with both a RunAs User and Impersonate user in different tests, and with each test the program will run correctly under multiple user account, but after exiting it will immediately launch a second time.
Is there a way to prevent this? What information do you need to assist with this?
Thank you!
Executable launches after running with runas
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.
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.
- lincoln.gaudreau@accor.com
- Posts: 2
- Last visit: Wed Apr 10, 2019 8:24 am
- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: Executable launches after running with runas
Thank you for the identifying this issue.
I was able to replicate the condition. In general, it seems the execute the script twice.
When doing the "Build and Run" option, the script exe runs but when exiting, the script will run the second time.
Will be looking into it!
Thanks
I was able to replicate the condition. In general, it seems the execute the script twice.
When doing the "Build and Run" option, the script exe runs but when exiting, the script will run the second time.
Will be looking into it!
Thanks
- lincoln.gaudreau@accor.com
- Posts: 2
- Last visit: Wed Apr 10, 2019 8:24 am