troubleshooting Question

vbscript to read xml file and write to registry

Avatar of Aaron Cain
Aaron CainFlag for United States of America asked on
XMLVB Script
1 Comment1 Solution345 ViewsLast Modified:
I am looking to get a vbscript to read an the attached XML file

xml version="1.0" encoding="UTF-8"?>
<HPDOM>
  <diagModule>
    <_1>
      <TestResult>
        <_3>6144</_3>
        <_4>The Battery health is the indicator of how well the multiple cells for the battery are charging and discharging. A Good Status indicates the battery is functioning properly.</_4>
        <_5>9GBWTK-5L2617-WPQC2J-C0CX03</_5>
        <_6>DesignCapacity=5600,FullChargeCapacity=5342,RemainingCapacity=5342,MaxError=0,CycleCount=21,Temperature=32,TerminalVoltage=12810,Current=0,DesignVoltage=11100,BatteryManufactureName=HP,Status=224,CellVoltage1=0,CellVoltage2=4267,CellVoltage3=4270,CellVoltage1=4274,BatteryACPower=1,BatterySupportedCount=1,SerialNumber=00584 2011/02/09,Source=1,Table=0,SubTable=0</_6>
      </TestResult>
    </_1>
  </diagModule>
</HPDOM>


 and export the data for the following :

DesignCapacity=5100
FullChargeCapacity=4934
RemainingCapacity=3904
CycleCount=114
Current=2611
DesignVoltage=10800
Status=128
CellVoltage1=4122
CellVoltage2=4110
CellVoltage3=4115
BatteryACPower=1
SerialNumber=07415
 
Into corresponding registry keys
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros