Steadystate implementation and WMI

(imported topic written by admccray91)

We are in process of enabling power management in bigfix. The though process is that we have several student labs that are using Microsoft’s Steadystate Product. We want to point all of these machines to BigFix for patch management, but need assistance on the configuration part.

The basic premise is to turn the computers on at a designated time, run all the patches as part of a baseline, and in the end, retain all of the changes into the Hard Disk Protection. In looking over the internet, there are some VBScripts that make use of WMI to enable the “retain changes” feature. I have tested the following VBScript against STeady State and it works.

----------

’ ***

’ *** Version: 1.0

’ *** Author: Daniel Reis

’ *** Email: daniel@fe.up.pt

’ ***

’ *** Date: 12/06/2008

’ ***

dim objNet

On Error Resume Next

’ Identify the computer to manage

Const strComputer= “.”

Const WDP_MODE_COMMIT = 2

Const SUCCESS = 0

Const FAILURE = 1

set objWbemServices = GetObject (“winmgmts:\” & strComputer & “\root\wmi”)

set setWdpObjects = objWbemServices.ExecQuery (“SELECT * FROM WDP_Control”)

For Each objWdp In setWdpObjects

objWdp.CurrentMode = WDP_MODE_COMMIT

objWdp.Put_

Next

If Err.Number 0 Then

Wscript.echo “FAILURE”

Return FAILURE

Else

Wscript.echo “SUCCESS”

Return SUCCESS

End If

---------

How can I create a relevance expression to see if the the Disk protection is enabled or not using WMI.

Thanks,

Adrian McCray

(imported comment written by BenKus)

Hey Adrian,

I don’t have SteadyState enabled so I can’t test it… but if you open up the Relevance Debugger on one of these computers and type:

q: selects “* FROM WDP_Control” of wmi

Do any of the answers look like they might indicate the system is enabled or disabled for disk protection? If you give me the valuename and the value, we can make you a nice property to identify the systems… And we can also take the vbscript above and make it into a Task that you can add to the end of your Baselines after running patches.

Ben