Powershell Form textbox

crp0499
crp0499 used Ask the Experts™
on
Is there a way to grab the value from a Textbox in Powershell without closing the form to get the value. For instance I start a form and want to enter information into a textbox but not have to close the form box to get the value. I'm trying to create textbox for entering password and username and the values are available to pass to PSCredentials. I have not been able to achieve this yet, so if you could assist me with a solution, workaround, or the best way to get the result I would appreciate it.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Technical Expert
Commented:
Are you unable to just trigger '$usercred = get-credential'?

It may not be within the form you are creating, but should pop up a standard authentication box, which is then handled by windows, and passes back credentials in an encrypted format.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial