ExcelClient.MakeXLSFromCLIXML

ExcelClient.MakeXLSFromCLIXML($CLIXMLFileName, $XLSFileName)
This method generates a .xls file from a .xml file.

Parameters
Name Summary
$CLIXMLFileName XML file name to read.
$XLSFileName xls file name to write.


Returns
nothing.

ex)
$ec = new ExcelClient;
$xmlfn = "c:\temp\service.xml";
Get-WmiObject -ComputerName $env:computername -Namespace root\cimv2 -Class Win32_service | Export-CliXml $xmlfn;
$ec.MakeXLSFromCLIXML($xnlfn, ($xmlfn + ".xls"));

Last edited Mar 2, 2013 at 1:04 PM by Tom__S, version 4

Comments

No comments yet.