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.
This topic is 2 years and 10 months 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.
Locked
DrKatzmann
Posts: 6
Last visit: Sun Apr 17, 2022 12:17 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: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 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.
-
This topic is 2 years and 10 months 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.
Locked