Powershell 无法加载类型';System.Management.Automation.PSSnapIn

Powershell 无法加载类型';System.Management.Automation.PSSnapIn,powershell,system.management,Powershell,System.management,我通过PowerShell远程连接到Nano server 2016。尝试导入模块时,出现错误无法加载类型“System.Management.Automation.PSSnapIn”from assembly“System.Management.Automation,Version=3.0.0 您正在尝试导入哪个模块?它是一个自定义模块。我们在其中包含了许多程序集,其中一个是System.Management.Automation。您是否运行PS 2.0,模块是否需要.NET 4.0?Powe

我通过PowerShell远程连接到Nano server 2016。尝试导入模块时,出现错误
无法加载类型“System.Management.Automation.PSSnapIn”from assembly“System.Management.Automation,Version=3.0.0

您正在尝试导入哪个模块?它是一个自定义模块。我们在其中包含了许多程序集,其中一个是System.Management.Automation。您是否运行PS 2.0,模块是否需要.NET 4.0?Powershell版本为5.1,模块需要.NET 4.5