Closed
Description
From @lw-schick on March 22, 2017 13:4
Description
I can't import the PowerShell module SSASCMDLETS from SQL Server Analytics Service.
Steps to Reproduce:
- VSCode Version: 1.10.2
- OS Version: Windows 7 64x
- Install SQL Server with Analytics Service
- Run Import-Module SSASCMDLETS
Results in:
PS C:\myfolder> Import-Module SQLASCMDLETS
Import-Module : The current Windows PowerShell host is: 'Visual Studio Code Host' (version 0.10.1). The module 'C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\PowerShell\Modules\SQLASCMDLETS\SQLASCMDLETS.psd1' requires a minimum Windows PowerShell host version of '1.0' to run.
At line:1 char:1
+ Import-Module SQLASCMDLETS
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Program File...LASCMDLETS.psd1:String) [Import-Module], InvalidOperationException
+ FullyQualifiedErrorId : Modules_InsufficientPowerShellHostVersion,Microsoft.PowerShell.Commands.ImportModuleCommand
PS C:\myfolder>
The PSVersionTable looks OK:
PS C:\myfolder> $PSVersionTable
Name Value
---- -----
PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\myfolder>
Copied from original issue: microsoft/vscode#23017