-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Software and How To Questions
- Is there an effective way to parse the output of biosconfigu...

Create an account on the HP Community to personalize your profile and ask a question
01-14-2022 09:04 AM
Hello,
I hope I am asking in the correct place, if not feel free to redirect me elsewhere.
I am trying to use the biosconfigutility64.exe program to gather the Ownership Tag setting from the BIOS as part of a script in an organisation for setting up laptops. I am able to get the correct Ownership Tag setting using the command "biosconfigutility64.exe /getvalue:"Ownership Tag"" however the output is very messy and unusable for my purposes.
Here is the output:
<BIOSCONFIG Version="" Computername="DESKTOP-QNBN5GF" Date="2022/01/14" Time="16:00:45" UTC="0">
<SETTING changeStatus="pass" name = "Ownership Tag" returnCode="0">
<VALUE><![CDATA[CORRECT_OWNERSHIP_TAG]]></VALUE>
</SETTING>
<SUCCESS msg="No errors occurred" />
<Information msg="BCU return value" real="0" translated="0" />
</BIOSCONFIG>
I was just wondering if the program included any way to automatically parse the output to retrieve just the ownership tag? It would save me a lot of time.
01-14-2022 11:06 AM
Did you know playing around with BIOS is the shortest way to brick your machine ?
Regards.
***
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.