i’m trying to create Relevace to get if BIOS Password is Setted using Wmi Class called HP_BIOSSetting.
I try this Clause:
string values of properties “name” of select objects “name from HP_BIOSSetting where name = ‘Setup Password’” of wmis “root\hp\instrumentedbios”
And it works fine, but if i modify Proprerties “IsSet” it return Query not Valid.
string values of properties "IsSet of select objects “name ,isset from HP_BIOSSetting where name = ‘Setup Password’” of wmis “root\hp\instrumentedbios”
The relevance shoud be ok , where i failed? with powershell i check and the Wmi query is ok.
It’s really difficult to tell without posting your exact query, and using the code formatting tag in the Forum to ensure you don’t have an issue with quoting or spaces
string values of properties "name" of select objects "name from HP_BIOSSetting where name = 'Setup Password'" of wmis "root\hp\instrumentedbios"
This query works and in Fixlet Debugger return “Setup Password”.
now i need to get the properties called IsSet and i modify the query with the following Expression:
string values of properties "IsSet" of select objects "name,Isset from HP_BIOSSetting where name = 'Setup Password'" of wmis "root\hp\instrumentedbios"
but i receive back the following error: 0x80041017 query WMI not Valid
I think your ‘IsSet’ is not a WMI property, but a method from the PowerShell class that retrieves WMI properties. Checking for the existence/value may require something else in relevance, which is why I’m trying to explore which properties are available.