I am remotely connected to Nano server 2016 by PowerShell. When I am trying to import a module, I get an error Could not load type 'System.Management.Automation.PSSnapIn' from assembly 'System.Management.Automation, Version=3.0.0.0
.
Asked
Active
Viewed 2,223 times
2

DanielBarbarian
- 5,093
- 12
- 35
- 44

Kartik Gupta
- 21
- 2
-
Which module are you trying to import? – hdhruna Aug 17 '16 at 17:30
-
It is a customized module. We have included many assemblies in it, one of which is System.Management.Automation. – Kartik Gupta Aug 24 '16 at 12:14
-
Are you running PS 2.0 and does the Module require .NET 4.0 ? – hdhruna Aug 24 '16 at 12:45
-
Powershell version is 5.1 and the module requires .NET 4.5 – Kartik Gupta Aug 24 '16 at 13:25