Reputation: 1
I'm running powershell command on a linux server, and I have powershell for linux as well as the SqlServer installed, but when I run Invoke-ASCmd
I got
Invoke-ASCmd: The term 'Invoke-ASCmd' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Here are the version of my powershell and SqlServer module:
PS /> Get-Host | Select-Object Version
Version
-------
7.1.3
PS /> Get-Module -Name SqlServer
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 21.1.18245 SqlServer {Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp, Add-SqlColumnEncryptionKeyValue, Add-SqlLogin…}
I could run Invoke-ASCmd
locally on Windows, but it doesn't work on Linux.
Please help me with this issue, thanks so much
Upvotes: 0
Views: 298