Run GUI with build in credentials

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
DrKatzmann
Posts: 6
Last visit: Sat May 08, 2021 3:45 pm
Has voted: 3 times

Run GUI with build in credentials

Post by DrKatzmann »

Hi all
I need to run af script (in a GUI) with the credentials of a service account. It is also necessary that there are no prompt. In other words, somehow I need to hardcode the credentials.

What is the best way to do this? The GUI wil be compiled to an *.exe file.

Regards

jvierra
Posts: 14833
Last visit: Fri Jun 18, 2021 5:42 pm
Answers: 10
Has voted: 3 times
Been upvoted: 10 times

Re: Run GUI with build in credentials

Post by jvierra »

You can set the package to run with alternate credentials when you package the script. See the documentation for instructions.
-

Locked