Closed
Description
I have this parameter in one of my functions:
# The user name to fetch roles for
[Parameter(Position=1, Mandatory=$True, ValueFromPipelineByPropertyName=$true, ParameterSetName='ByName')]
[string]$AuthenticatedUser,
It causes a Warning:
PSAvoidUsingPlainTextForPassword: Parameter '$AuthenticatedUser' should use SecureString, otherwise this will expose sensitive information. See ConvertTo-SecureString for more information.
This isn't a password. It's a USER NAME. Go Away.
Metadata
Metadata
Assignees
Labels
No labels