Microsoft partner of the year icon

 

In order to run SMLets on a computer it must have some of the SCSM console DLLs installed. Anton Gritsenko wrote this great article about how to install these without the need to install the SCSM console. However, due to some of the changes made to Windows Server 2012 and 2012 R2, these steps will no longer work. The problem is you can no longer register DLLs by copying them to the assembly folder. You now have to use the gacutil.exe utility to registry them.

 

1. Download and Install SMLets – http://smlets.codeplex.com/

2. Open PowerShell and set the Execution Policy to remotesigned using the command:

Set-ExecutionPolicy remotesigned -force

3. Download Windows 8.1 SDK – http://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx

4. Launch the SDK Installer

5. When prompted select the feature .NET Framework 4.5.1 Software Development Kit

clip_image002

6. Copy the files Microsoft.EnterpriseManagement.Core.dll and Microsoft.EnterpriseManagement.ServiceManager.dll from c:Program FilesMicrosoft System CenterService Manager 2010SDK Binaries to your Orchestrator server.

7. Open an elevated command prompt and navigate to the folder containing the Service Manager DLLs.

8. Enter the commands:
copy Microsoft.EnterpriseManagement.Core.dll C:WindowsassemblyMicrosoft.EnterpriseManagement.Core.dll /y
copy Microsoft.EnterpriseManagement.ServiceManager.dll C:WindowsassemblyMicrosoft.EnterpriseManagement.ServiceManager.dll /y

clip_image004

9. Once the DLL’s are copied you will not need to register them. Do this by entering the commands below:
“C:Program Files (x86)Microsoft SDKsWindowsv8.1AbinNETFX 4.5.1 Toolsgacutil.exe” /i “C:WindowsassemblyMicrosoft.EnterpriseManagement.Core.dll”
“C:Program Files (x86)Microsoft SDKsWindowsv8.1AbinNETFX 4.5.1 Toolsgacutil.exe” /i “C:WindowsassemblyMicrosoft.EnterpriseManagement.ServiceManager.dll”

clip_image006

10. Open C:Program FilesCommon FilesSMLetsSMLets.psm1

11. Add a # to the beginning on lines 4, 5, and 6 to comment them out.

12. Comment out line 46, and on line 47 add the line below change SCSMSERVERNAME with the name of your management server.

$GLOBAL:smdefaultcomputer = “SCSMSERVERNAME”

13. Save and close SMLets.psm1