lazywinadmin / lazywinadmin.github.io

Personal Blog - Using the minimal-mistakes jekyll template
https://lazywinadmin.com
MIT License
4 stars 3 forks source link

2014/09/powershell-scsm-install-and-config #224

Closed lazywinadmin closed 5 years ago

lazywinadmin commented 5 years ago

PowerShell/SCSM - Install and Config the SMlets Module

https://lazywinadmin.com/2014/09/powershell-scsm-install-and-config.html

lazywinadmin commented 5 years ago

Malik Amaduddin

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.

disqus profile

lazywinadmin commented 5 years ago

François-Xavier Cat (@lazywinadmin)

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)

disqus profile

lazywinadmin commented 5 years ago

Simon Abraham

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...

disqus profile