This article contains code snippets for C# and PowerShell that can be helpful when you work with SCSM 2010 SP1 SDK.
Continue reading Code snippets for SCSM 2010 SP1 SDK. Part 1.
This article contains code snippets for C# and PowerShell that can be helpful when you work with SCSM 2010 SP1 SDK.
Continue reading Code snippets for SCSM 2010 SP1 SDK. Part 1.
SMLets module required to be installed on computer with SCSM console, also you must copy Microsoft.EnterpriseManagement.Core.dll from SCSM server. But this requirement can be avoided by several simple steps. And this post describe how to do that.
Installing SMLets on separated server can be helpful on several scenarios, like Opalis\Orchestrator server or some server which must communicate with SCSM using PowerShell.
Continue reading Install SMLets on server without SCSM console
Many cmlets from SMLets module has the –ServerName or –SCSMSession parameters. The first of them never worked (rise the error), with second you must use session’s variable each time then execute the command and not all of the cmdlets support this pararmeter. But the SMLets has the solution to run all cmdlets again server which are differ from localhost.
To do that you must set the $smdefaultcomputer variable before import SMLets module. So your script must be something like that:
$smdefaultcomputer = "SCSMSERVER" import-module SMLets # Put here any SCSM's cmdlet