无法在Powershell中导入模块

smc*_*mcg 4 powershell

由于此错误,我无法在Powershell中导入任何模块:

PS C:\Users\Administrator> import-module failoverclusters
The term 'import-module' is not recognized as a cmdlet, function, operable program, or     script file. Verify the term and
 try again.
At line:1 char:14
+ import-module  <<<< failoverclusters
Run Code Online (Sandbox Code Playgroud)

这是全新安装的Windows Server 2008 Enterprise.我通过服务器管理器将Powershell安装为Windows功能.我安装Windows Server时没有安装它.

Fro*_* F. 8

那是因为Windows 2008只附带了使用Snapins的PowerShell 1.0.如果需要模块支持:安装PowerShell 2.0或3.0.链接直到安装程序:

Powershell 2.0:x64(64位)x86(32位)

PowerShell 3.0

要安装PS 3.0,您至少需要2008 SP2(并下载Windows 6.0 64或32位版本).