In my apps, I use secret variables to execute commands that require privilege elevation.
Example : Set-ADUser -Identity $SamAccountName -Description $Description -Credential $Secret:DSI
Regularly I get a popup asking me to re-enter the password
This request is quite annoying because I don’t want the password to be known by the users of this app.
Is this normal behavior?
I have found that the creation of PSCredentials in Powershell Universal only works properly if you specify the user in the format “domain\username”. The format “username@domain.tld” did not work at all, at least for us.