solidfire / PowerShell

Collection of scripts, functions, and examples using the SolidFire Tools for PowerShell
MIT License
27 stars 20 forks source link

Connect-SFCluster doesn't always mask the password #59

Closed scaleoutsean closed 6 years ago

scaleoutsean commented 6 years ago

I noticed this few months ago, but I didn't quite understand what I was seeing.

image

ahaid commented 6 years ago

Ah yes. You've hit the situation where the username is passed in via parameter but not the password. The prompt for password changes to a String from a SecureString in that situation. It's a known thing and there's nothing I can do about it with the available parameter types from PowerShell. The hope is that people will input the password at the same time as the username in either the parameter list or entered in the credential dialog.