Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: energy-report saving as an xml file.. how to change to html


04 Apr 2012   #1

Windows 7 Ultimate 64bit
 
 
energy-report saving as an xml file.. how to change to html

for some reason my energy-reports are saving as .XML files i want them to open as html. is there a command to get this to change?


My System SpecsSystem Spec
.

04 Apr 2012   #2

Windows 8 Core X64
 
 

How do you create the energy report?
My System SpecsSystem Spec
04 Apr 2012   #3

Windows 7 Ultimate 64bit
 
 

i go into cmd (run as admin) type powercfg -energy it puts the energy report in my temp folder as an xml file
My System SpecsSystem Spec
.


04 Apr 2012   #4

Windows 8 Core X64
 
 

Looks like that applies more to laptops than desktops.

What about not specifying the -xml parameter. It should then create a html file, at least it did for me.

Never mind, I see you said you only used the -energy parameter.

I ran it on my desktop and it created a html file as output, not xml.

This is what the built in help says:
Quote:
-ENERGY
Analyze the system for common energy-efficiency and battery life
problems. The ENERGY command should be used when the computer is
idle and with no open programs or documents. The ENERGY command
will generate an HTML report file in the current path. The ENERGY
command supports the following optional parameters:

Usage: POWERCFG -ENERGY [-OUTPUT <FILENAME>] [-XML]
[-DURATION <SECONDS>]
POWERCFG -ENERGY -TRACE [-D <FILEPATH>]
[-DURATION <SECONDS>]
-OUTPUT <FILENAME> - Specify the path and filename to store the
energy report HTML file.
-XML - Format the report file as XML.
-TRACE - Record system behavior and do not perform
analysis. Trace files will be generated in
the current path unless the -D parameter
is specified.
-D <FILEPATH> - Specify the directory to store trace data.
May only be used with the -TRACE parameter.
-DURATION <SECONDS> - Specify the number of seconds to observe
system behavior. Default is 60 seconds.
My System SpecsSystem Spec
04 Apr 2012   #5

Windows 7 Ultimate 64bit
 
 

im not sure what u mean by that. Is what i am typing specifiying an xml parameter? What should i type into the cmd?
My System SpecsSystem Spec
05 Apr 2012   #6

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

Try using the -output parameter to specify the file-name with an html extension.
You should change F:EnergyRpt.html in this example to where you want the file.

i.e. powercfg -energy -output F:EnergyRpt.html
My System SpecsSystem Spec
Reply

 energy-report saving as an xml file.. how to change to html




Thread Tools



Similar help and support threads for2: energy-report saving as an xml file.. how to change to html
Thread Forum
Energy saving, have my graphic card turn off when not in use Performance & Maintenance
energy report using cmd Performance & Maintenance
Energy saving, how to? General Discussion
Monitor goes blank but stays on in energy saving mode Hardware & Devices
how do i view an energy report? Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:48 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33