Get-Credentials

Hello,

In terminal mode, PS, Get-Credentials commandlet does not work.
Did anyone experience the same and found a workaround?

Thanks

Hi @Mike_D

There’s a regkey you can set to allow you to enter credentials without the pop up.

Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds" -Name "ConsolePrompting" -Value $True

You can set it back to normal with $False when you’re done.

Very nice!
Thank you