Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

System Center Configuration Manager 2007 : Configuration Manager and WMI (part 6) - WMI on Configuration Manager Servers

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
2/22/2012 4:27:37 PM

WMI on Configuration Manager Servers

The SMS provider is a WMI provider that exposes many of the most important objects in the Configuration Manager site database as WMI managed objects. This provider is generally installed on either the site server or the site database server. The ConfigMgr console and auxiliary applications such as the Resource Explorer, Service Manager, and various ConfigMgr tools are implemented as WMI management applications. As with other WMI providers, you can also take advantage of the SMS provider’s objects in custom scripts or other management applications. The provider also implements the Configuration Manager object security model. 

The SMS provider namespace is Root\SMS\site_<Site Code>. You can use standard WMI tools to view ConfigMgr classes and objects. You can also view the properties of SMS provider objects from within the ConfigMgr console. To enable viewing of WMI information, navigate to the AdminUI\bin folder under the main ConfigMgr installation folder and start the console with either or both of the following command-line options:

  • AdminConsole.msc /SMS:NamespaceView=1— This adds a ConfigMgr Namespace node to the console tree. The Namespace node displays a list of WMI classes in the ConfigMgr namespace. You can click a class name, as shown in Figure 24, to display its properties, qualifiers, and methods in the details pane. You can also select a property to see its associated list of property qualifiers.

    Figure 24. The SMS_Site class as displayed in the console Namespace view
  • AdminConsole.msc /SMS:DebugView=1— This allows you to view object properties as raw WMI data. With Debug view enabled, you can right-click an object in the console tree and choose ConfigMgr Object Properties View to display the WMI properties. Notice that the default console view essentially presents the same information in a Windows dialog box. Figure 25 shows the WMI properties of the DAL ConfigMgr site.

    Figure 25. The properties of the DAL site displayed in the console’s Object Properties view

Figure 3.32 displayed the property qualifiers of the Status property, showing that the status value “1” means ACTIVE.

Using the console WMI views makes exploring the SMS provider namespace much easier. To illustrate how to drill down into the underlying WMI from the console, this section uses ConfigMgr collections as an example. To explore the WMI behind ConfigMgr collections, perform the following steps:

1.
Enter the following command line to open the console with both the Namespace and Debug views enabled:

AdminConsole.msc /SMS:DebugView=1 /SMS:NamespaceView=1

2.
Navigate to System Center Configuration Manager -> Site Database -> Computer Management -> Collections.

3.
Right-click the Collections node, and then choose the ConfigMgr Object Properties View. Figure 26 displays some of the WMI properties of the collection instances.

  • The RelPath property in column 1 provides the class name, SMS_Collection, and the name of each instance. You can use this information to locate the class and instances in CIM Studio of the WMI Object Browser. This is especially useful for those classes with names not easily guessed, such as the SMS_SIIB_Configuration class that represents many site settings.

  • The MemberClass name of the SMS_Collection instances tells you where to find additional information about the collection members.

Figure 26. Some of the key properties of the ConfigMgr collections, as displayed in console’s Object Properties view

4.
The /SMS:NamespaceView=1 command-line switch adds the ConfigMgr Namespace folder to the Console tree pane. Locate the SMS_Collection class under the ConfigMgr Namespace node in the console tree pane. As shown in Figure 27, the Namespace view provides a convenient display of class properties, methods, and qualifiers.

Figure 27. The Namespace view in the ConfigMgr Collections console displays the SMS_Collection class properties, methods, and qualifiers.

5.
You can use CIM Studio and the WMI Object Browser to explore the SMS_Collection class and instances further. Figures 28 and 29, respectively, show the class methods and associations in CIM Studio. The SMS_Collection class methods allow you to perform operations such as pushing the ConfigMgr Client to collection members with the Create CCRs method and updating collection membership with the RequestRefresh method. When you perform these operations through the ConfigMgr console, you are actually invoking the methods of the SMS_Collection class.

Figure 28. The Methods tab of the SMS_Collection class displayed in CIM Studio

Figure 29. The SMS_Collection class associations link a collection to its subcollections, members, and advertisements for the collection.

The Smsprov.mof file contains the MOF language defining the Root\SMS namespace and the classes it contains. You can find the Smsprov.mof file in the bin\<platform> folder under the Configuration Manager installation folder. You can also export MOF definitions for instances of the following ConfigMgr object types directly from the console:

  • Collections

  • Queries

  • Reports

To export object definitions to MOF files, right-click the parent node, choose Export Objects, and complete the wizard to choose the instances to export and the file location as well as to enter descriptive text. You can use a similar process to import objects from MOF files.

Other -----------------
- System Center Configuration Manager 2007 : Active Directory Integration
- Deploying and Managing BizTalk Applications : Deploying a BizTalk Solution (part 2)
- Deploying and Managing BizTalk Applications : Deploying a BizTalk Solution (part 1) - Steps in Deploying a BizTalk Application
- Microsoft Dynamics CRM 4.0 Accelerators : Event Management Accelerator (part 3) - Publish the CRM Workflow & Testing the Portal
- Microsoft Dynamics CRM 4.0 Accelerators : Event Management Accelerator (part 2) - Install CRM Reports & CRM Customizations
- Microsoft Dynamics CRM 4.0 Accelerators : Event Management Accelerator (part 1) - Install CRM Customizations
- Microsoft Systems Management Server 2003 : Disaster Recovery - Using the SMS Site Repair Wizard
- Microsoft Systems Management Server 2003 : Disaster Recovery - Using the Recovery Expert
- SQL Server 2008 : Data Collector and MDW - Data collection
- SQL Server 2008 : Data Collector and MDW - Setup and configuration
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server