When you use the Get-Credential cmdlet, you get a GUI dialog box to enter the credentials. This is the "Common Criteria Certified" way of handling credentials. It is also a pain in the butt at times. If you are an admin, you can alter this and request credentials via the command line as follows:
PS> $key = "HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds"PS> Set-ItemProperty $key ConsolePrompting TruePS> Get-Credential
cmdlet Get-Credential at command pipeline position 1Supply values for the following parameters:CredentialUser: ntdev\jsnoverPassword for user ntdev\jsnover: **************
UserName Password-------- --------ntdev\jsnover System.Security.SecureString
Enjoy!
Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx