Windows Vista Forums

VBScript to Query WMI

  1. #1


    AN Guest

    VBScript to Query WMI

    Hi,

    I am basically looking for a VBSCRIPT that can query the WMI to retrieve the
    BIOS password set on a machine (to prevent normal users from changing the
    BIOS settings). Since various vendors seem to have different methods of
    storing, there does not seem to be a common WMI Class for finding this
    information.

    Any pointers on this will be very helpful.

    TIA

    AN



      My System SpecsSystem Spec

  2. #2


    mayayana Guest

    Re: VBScript to Query WMI

    I don't see anything like that listed in the WMI
    help. I'd be surprised if WMI could retrieve it. I'd
    be even more surprised if Microsoft added that ability.
    What good is a BIOS password that can be negated
    programmatically, even remotely?

    If you got locked out of your own PC and need
    to clear the password, look up your motherboard
    model online. There should be a small jumper that
    you can remove for a few seconds to clear the
    password. It's often easily identifiable on the board
    even without needing to get a diagram of your specific
    motherboard. There will probably be a tiny but readable
    marking next to the jumper that says something
    like "pswrd".

    Failing that you could also just remove the battery for
    a minute or so, but that will erase the memory of
    all BIOS settings. So if you don't know the BIOS fairly
    well then you should be careful with that. Maybe write
    the current settings down before proceeding. (In many
    cases a cleared BIOS will have little or no effect, but in
    some cases it can make the machine seem "fried"
    until you get the settings right.)


    >
    > I am basically looking for a VBSCRIPT that can query the WMI to retrieve
    the

    > BIOS password set on a machine (to prevent normal users from changing the
    > BIOS settings). Since various vendors seem to have different methods of
    > storing, there does not seem to be a common WMI Class for finding this
    > information.
    >
    > Any pointers on this will be very helpful.
    >
    > TIA
    >
    > AN
    >
    >


      My System SpecsSystem Spec

  3. #3


    AN Guest

    Re: VBScript to Query WMI

    Thanks ... but I am looking more from a reporting perpective to check if
    machines have BIOS password set or not. I do not want to retrieve the same
    but just wondering if there was some kinda flag indicating if the BIOS
    password is set on the machine,

    Appreciate you taking the time to respond!

    Rgds
    AN

    "mayayana" <mayaXXyana@xxxxxx> wrote in message
    news:OfQSL2JLKHA.1488@xxxxxx

    > I don't see anything like that listed in the WMI
    > help. I'd be surprised if WMI could retrieve it. I'd
    > be even more surprised if Microsoft added that ability.
    > What good is a BIOS password that can be negated
    > programmatically, even remotely?
    >
    > If you got locked out of your own PC and need
    > to clear the password, look up your motherboard
    > model online. There should be a small jumper that
    > you can remove for a few seconds to clear the
    > password. It's often easily identifiable on the board
    > even without needing to get a diagram of your specific
    > motherboard. There will probably be a tiny but readable
    > marking next to the jumper that says something
    > like "pswrd".
    >
    > Failing that you could also just remove the battery for
    > a minute or so, but that will erase the memory of
    > all BIOS settings. So if you don't know the BIOS fairly
    > well then you should be careful with that. Maybe write
    > the current settings down before proceeding. (In many
    > cases a cleared BIOS will have little or no effect, but in
    > some cases it can make the machine seem "fried"
    > until you get the settings right.)
    >
    >

    >>
    >> I am basically looking for a VBSCRIPT that can query the WMI to retrieve
    > the

    >> BIOS password set on a machine (to prevent normal users from changing the
    >> BIOS settings). Since various vendors seem to have different methods of
    >> storing, there does not seem to be a common WMI Class for finding this
    >> information.
    >>
    >> Any pointers on this will be very helpful.
    >>
    >> TIA
    >>
    >> AN
    >>
    >>
    >
    >


      My System SpecsSystem Spec

VBScript to Query WMI

Similar Threads
Thread Forum
are VBscript on Windows server 2003 and VBscript on WS2008 compatible?
Hi everybody, Sorry if my question has already been asked, but I haven't found anything which is clear for me on this point. I spent a lot of...
VB Script
Query printers in 2008 domain using vbscript or WMI
I have the following code which I use to query published printers in AD on our domain (2003). We have now setup a 2 way trust with another domain...
VB Script
SQL Query in VBScript
I am using the following code to perform a SQL query and return a recordset I am getting the error "Arguments are of the wrong type, are out of...
VB Script
execute mysql query using vbscript
I have a script which will format some text and create a simple mysql query. The next thing I'd like the script to do is run a batch file to open...
VB Script
SQL Query in VBScript
Hi, I am trying to write a SQL query in vbs. I have been able to write a script which queries a single table. My problem now is that I am not...
VB Script
VBScript problem in running Stored Query
I am having strange problem. I have a saved query in MS Access which works absolutely fine without any problems. But when I try to call the stored...
VB Script
VBScript Problem with Access Query (Unspecified error)
I am facing a strange problem with a access query. I am trying to retrive some records from the multiple tables using Inner Join. The query is...
VB Script