Skip to content

-Credential parameter is not implemented #1

Open
@franckberneron

Description

@franckberneron

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 !

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions