找不到接受参数';获取WindowsFeature'; 再次呼叫PowerShell帮助!!

找不到接受参数';获取WindowsFeature'; 再次呼叫PowerShell帮助!!,powershell,windows-server-2008-r2,Powershell,Windows Server 2008 R2,我有下面的正在尝试连接到远程计算机并返回所有已安装的Windows功能。。然后,我将尝试导出列表(但到目前为止我还无法导出) 运行上述操作后,我正确地看到一个登录屏幕,允许我输入密码,然后出现以下错误,我认为我对PowerShell和位置参数的使用了解不够 A positional parameter cannot be found that accepts argument 'Get-WindowsFeature'. + CategoryInfo : InvalidArgum

我有下面的正在尝试连接到远程计算机并返回所有已安装的Windows功能。。然后,我将尝试导出列表(但到目前为止我还无法导出)

运行上述操作后,我正确地看到一个登录屏幕,允许我输入密码,然后出现以下错误,我认为我对PowerShell和位置参数的使用了解不够

A positional parameter cannot be found that accepts argument 'Get-WindowsFeature'.
+ CategoryInfo          : InvalidArgument: (:) [Get-Module], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetModuleCommand

任何指向正确方向的人都会帮上大忙!!谢谢大家。

你们错过了一个
服务器管理器
之后,您可能指的是
导入模块
,而不是
获取模块

Invoke-Command -ComputerName VM01 -ScriptBlock { Import-Module ServerManager; Get-WindowsFeature | Where-Object{$_.Installed -match "True" } | Select-Object -Property Name } -credential TestUser01

啊@jisaak非常感谢你!!欢迎光临。我只是添加了它作为一个答案,因为它可能是你问题的解决方案。
Invoke-Command -ComputerName VM01 -ScriptBlock { Import-Module ServerManager; Get-WindowsFeature | Where-Object{$_.Installed -match "True" } | Select-Object -Property Name } -credential TestUser01