In Set-Credential you can specify the -target attribute, it would be nice to support -target in Get-Credential as well.
This would allow setting the target as some short name, and allow easy get requests of the short target name vs username. Mainly for use from CLI.
For example I may want to request the credentials for a client Office 365 login with a username of
domainuser@somecompanyname.onmicrosoft.com but would set the target to compa and be able to easy recall it with get-credential -target compa
In Set-Credential you can specify the -target attribute, it would be nice to support -target in Get-Credential as well.
This would allow setting the target as some short name, and allow easy get requests of the short target name vs username. Mainly for use from CLI.
For example I may want to request the credentials for a client Office 365 login with a username of
domainuser@somecompanyname.onmicrosoft.com but would set the target to compa and be able to easy recall it with get-credential -target compa