Performing Management tasks using Cimcmdlets [3] – Operating System

  As a part of the ongoing blog series “Performing Management tasks using Cimcmdlets” we are sharing PowerShell snippets for a few Computer Management tasks. In this post we will be going over the PS snippets for Operating System Management. The corresponding Visual Basic samples are at: http://msdn.microsoft.com/en-us/library/aa394596(v=vs.85).aspx 1. Determine if a service pack has…

0

Performing Management tasks using Cimcmdlets [2] – Computer Hardware

As part of this blog series we are sharing PowerShell snippets for a few Computer Management tasks. In this post we will be going over the samples for Computer Hardware management. The Visual Basic samples for Computer Hardware Management are at: http://msdn.microsoft.com/en-us/library/aa394587(v=vs.85).aspx The corresponding PowerShell samples are below: 1. Determine how much free memory a…

1

Performing Management tasks using Cimcmdlets – Processes

WMI provides a standardized system management infrastructure that can be leveraged by a number of different clients. WMI providers and the classes exposed by the providers help in various management tasks. Our MSDN documentation lists a bunch of management scenarios and the corresponding Visual Basic samples, but it is much easier for an IT administrator…

2

Implementing MI Provider (6) – Build, Register, and Debug

This blog discusses how to build, register and debug MI provider. Build To build MI provider, open visual studio 2012, create an empty Visual C++ project named “process”, set type to DLL, and add all generated files into the project. Open project property dialog box, navigate to linker page, click input option, Set Module Definition…


Implementing MI Provider (5) – Implement

As discussed in Implementing MI Provider (4) – Generate Code (continute), Convert-MofToProvider.exe tool generates <class name>.c file for each target class, which contains stub functions to place the business logic of each operation, such as enumerate/get/delete/modify/new/<extrinsic methods>. This blog discusses how to implement stub functions of normal (instance) classes, while association and indication class will be discussed…


Implementing MI Provider (4) – Generate Code (continute)

As described in Implementing MI Provider (3), Convert-MofToProvider.exe tool generates a set of code files, including schema.c, module.c, WMIAdapter.c, Provider.DEF, <class name>.h, and <class name>.c. There is one header file for each target class and all of it’s ancestor class(es) if have. And one c file for each target class (specified by -ClassList parameter). Header files…


Introducing new Management Infrastructure (MI) API

In Windows 8/Windows server 2012 we introduced new Management Infrastructure (MI) API for writing WMI provider and client applications. This blog post will explain our goals for “Improving developer Experience”  and WHY  we did a new API for client and provider, instead of updating existing WMI API. We will continue to cover “HOW” to write…


Standards Based Management: DMTF Management Profiles

The investments we’ve made in Windows Server 2012 (and WMF3.0) for standards based management is built around WS-Man as the remoting protocol (HTTP is the transport) and CIM as the model.  By themselves, WS-Man and CIM are useful, but may not provide a consistent experience when managing a similar class of devices or management domain. …


Introducing – Standards Based Management in Windows Server "8"

We are excited to introduce the investments we have made in Windows Server “8” through this excellent blog post Standards based management in Windows Server 8 by Jeffrey Snover and Wojtek Kozaczynski. It’s a very detailed overview covering “Why Standards based management matters” and “What we have done in Windows “8” to take cloud-management to…