Open
Description
The documentation for Invoke-sqlcommand here
https://docs.microsoft.com/en-us/powershell/module/sqlserver/invoke-sqlcmd?view=sqlserver-ps
mentions Invoke-sqlcmd can take a PSCredential Object to authenticate against the server.
When actually passing -Credential to Invoke-sqlcmd, I get an error stating the -Credential parameter could not be found.
Indeed, reading the synopsis, you can't find it in the available parameters list.
Implementing it would be immensely convenient to avoid passing usernames & passwords and to facilitate scripting.
Thanks !