Invoke-SqlCommand

Development

For whatever reason, sometimes you just can’t upgrade the installed version of PowerShell on a server. In this case, I wanted to make use of the Invoke-SqlCommand command.

The most simple way around this limitation is to add a module to the server that includes a command that performs the same function.

See this post for a command that can be cut and pasted into a new PowerShell module file and easily accessed from your own scripts.

Simples!

Leave a Reply

Your e-mail address will not be published. Required fields are marked *