Skip to content

Code snippets for SCSM 2010 SP1 SDK. Part 1.

Code snippets for SCSM 2010 SP1 SDK. Part 1. published on 6 Comments on Code snippets for SCSM 2010 SP1 SDK. Part 1.

image

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.

How to rename item from sealed MP in SCSM

How to rename item from sealed MP in SCSM published on 3 Comments on How to rename item from sealed MP in SCSM

image

Some time you need to rename items in sealed management pack. For unsealed it’s can be done easily: export, change the value and import again, instead of sealed MPs, which we can’t change and reimport to SCSM. But management pack engine is pretty well then we talk about localization. Let’s see how to implement this.

Continue reading How to rename item from sealed MP in SCSM

Different between “Create Date” and “Time Added” fields

Different between “Create Date” and “Time Added” fields published on No Comments on Different between “Create Date” and “Time Added” fields

imageAlmost all objects created inside SCSM has a two similar fields: “Create Date” and “Time Added”. But in many case value of those fields can be very different. But why this happened and what value are stored at those fields?

Continue reading Different between “Create Date” and “Time Added” fields

List of images available in SCSM 2010 SP1

List of images available in SCSM 2010 SP1 published on 2 Comments on List of images available in SCSM 2010 SP1

image

When you create your own classes, views or folders sometime you need link existing images to them. To do that you must know ID or Name of the image. But all images located in several management pack so find them is not a easiest work. Near I provide full list of images available in SCSM 2010 SP1 CU2. This table contains image itself, size, id and name grouped by management pack.

Continue reading List of images available in SCSM 2010 SP1

Create custom UserControl for SCSM 2010 SP1

Create custom UserControl for SCSM 2010 SP1 published on 29 Comments on Create custom UserControl for SCSM 2010 SP1

image

Intro

I’ve already saw many questions on forums about extending SCSM with new forms and\or custom user’s controls. So I wrote this article to show how we can extend SCSM with user control only. As for me, I prefer to use custom control without rewriting entire form because User Control provide excellent ability to change form’s logic and visibility, but they require much less work unlike the creation of new form and replace existing one. Another reason – new version of SCSM, which expected at Q4 2011 – Q1 2012. It’s a very small chance what if you rewrote entire form it will be work with SCSM 2012.

DISCLAIMER. Most of provided solutions are not supported by Microsoft. All information provided AS IS, without any warranties.

Continue reading Create custom UserControl for SCSM 2010 SP1

Install SMLets on server without SCSM console

Install SMLets on server without SCSM console published on 5 Comments on Install SMLets on server without SCSM console

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

Run SMLets’s cmdlets from remote server

Run SMLets’s cmdlets from remote server published on 1 Comment on Run SMLets’s cmdlets from remote server

powershell[1]

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

Primary Sidebar