I have a form-based powershell script that I packaged in Powershell Studio a while back and I have been testing whether I can migrate it to Powershell Tools. The application does operations that require elevated/admin credentials so we normally run the program from an admin prompt.
I have ported the code and everything seems to work “unelevated” until you hit submit and then you get a runtime error which I think I’ve tracked down to “access denied” on the operation being submitted.
The form/application does not work at all when I run the script from an elevated powershell window or package it as an exe and run it elevated.
Is there something that needs to be done to allow a form/application to run elevated?