Closed lazywinadmin closed 5 years ago
Posted on: 2014-12-17T06:19:22Z
The Microsoft.EnterpriseManagement.Core Version 7.0.5000.0 is already available in the c:\windows\assembly. But whenever I run the import-module SMLets I get the following error.
import-module : Could not load file or assembly 'Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture
PublicKeyToken=9396306c2be7fcc4' or one of its dependencies. The system cannot find the file specified.
At line:1 char:1
+ import-module smlets
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
I also did the specified changes to SMLets.psm1 file. But still no luck. Please help me out.
Posted on: 2014-12-18T13:25:43Z
Hey Malik,
Make sure you unblock smlets files after you downloaded it and unpack the zip.
You also need SCSM console install on the machine that will run the scripts (this will install some NET Library required by smlets)
Posted on: 2017-07-05T11:28:19Z
Watch out for your versions, if you use the newer SDK binaries; you will have the DLL error, I have documented the solution here, including orchestrator natively using PowerShell v3+:
http://blogs.catapultsystem...
PowerShell/SCSM - Install and Config the SMlets Module
https://lazywinadmin.com/2014/09/powershell-scsm-install-and-config.html