Question while using BES Client and WMI

(imported topic written by amagewick91)

Hello,

I have come across this problem before, so I am going to inquire about it. I would really like to figure this one out, because I know I will hit it again in the future. I am trying to get technical in using the client to make a WMI call and I am wondering if the client can do this. In this example, I want to look in WMI using DellOMCI and see if the Dell harddrive password is at least set to something. Dell has a Dell OMCI script that can change the password via windows and DellOMCI, so here is the portion of that script that is needed to at least figure out what to call in WMI.

'*** Initialize variables
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_Configuration"
strKeyValue = "Configuration"
strPropName = "Password"
strPassEncryptPropName = “PasswordEncrypted”

Looking at the above, usually I can take the NameSpace/Class/Prop and create a WMI query. Example shown below.

Q: if (exists wmi) then (string values of selects “Password FROM Dell_Configuration” of wmi “Root\DellOMCI”) else (“N/A”)

This is not working. Is there a way to look at a property inside of a key when doing a WMI call through the BES client? I don’t know what the limitations are of the client, and I do not know a whole lot about WMI itself. I am guessing I could dump a query from WMIC and then parse that data somehow, but that is my second step if this doesn’t work through the client.

(imported comment written by Lee Wei)

Dell OMCI is installed separately from the OS, so the component needs to be in place.

This post has some discussion on detecting Dell OMCI.

Maybe it might be useful in case you have not seen it.

http://forum.bigfix.com/viewtopic.php?id=4128

(imported comment written by amagewick91)

I will take a deeper look at this, but I don’t think it has what I am looking for. I did though learn something else from it!

(imported comment written by MattBoyd)

Amagewick, the WMI query you posted above is for the BIOS password, not the hard drive password. Furthermore, this query will return a blank value, presumably because Dell didn’t want someone to be able to retrieve the BIOS password with a WMI query.

To check if the Hard Drive has a password set, you would want something like this:

if (exists wmi) then (string values of selects “HDDPasswordStatus FROM Dell_HardDiskDrivePasswordConfiguration” of wmi “Root\DellOMCI”) else (“N/A”)

It will return an integer-based value. Here’s a reference: http://support.dell.com/support/edocs/software/smcliins/cli76/en/refgd/index.htm#Dell_HardDiskDrivePasswordConfiguration

Oh, and if you’re looking to see if the system boot password is set, you can use this:

if (exists wmi) then (string values of selects “BootPasswordVerification FROM Dell_Configuration” of wmi “Root\DellOMCI”) else (“N/A”)

http://support.dell.com/support/edocs/software/smcliins/cli76/en/refgd/index.htm#Dell_Configuration

(imported comment written by amagewick91)

I know that this was the wrong query, I was just using it as an example. :slight_smile: I’ll try some more stuff and see what happens