Hello, I have this code snippet I run, the .ps1 is convert into a .exe
$pw = Get-Credential Set-Secret -Name Secret -Vault MyVault -Secret $pw Start-Process "C:\process.lnk"
The problem is I get this when I run it:
I hit ok and get this, which is what I want:
Is there anyway to supress that 1st box?
Thank you.
FWIW, I dont get the same behavior as you via a Message box. Mine is present in the shell as standard output. I can however get rid of the shell standard output using this:
$pw = Get-Credential -Message 'Please Provide the following'
Might be worth a shot.
Thanks Tony. I recompiled the exe and that box does not show anymore.