<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Convert_an_.evtx_file_to_text</id>
		<title>Convert an .evtx file to text - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Convert_an_.evtx_file_to_text"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Convert_an_.evtx_file_to_text&amp;action=history"/>
		<updated>2026-05-06T15:51:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Convert_an_.evtx_file_to_text&amp;diff=4596&amp;oldid=prev</id>
		<title>George2: Created page with &quot;Sourced from https://serverfault.com/questions/783708/convert-saved-evtx-files-to-text &lt;br&gt; &lt;source lang=powershell&gt; $a = Get-Item *.evtx $output_file = [System.IO.StreamWrite...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Convert_an_.evtx_file_to_text&amp;diff=4596&amp;oldid=prev"/>
				<updated>2020-02-21T10:57:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sourced from https://serverfault.com/questions/783708/convert-saved-evtx-files-to-text &amp;lt;br&amp;gt; &amp;lt;source lang=powershell&amp;gt; $a = Get-Item *.evtx $output_file = [System.IO.StreamWrite...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sourced from https://serverfault.com/questions/783708/convert-saved-evtx-files-to-text &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang=powershell&amp;gt;&lt;br /&gt;
$a = Get-Item *.evtx&lt;br /&gt;
$output_file = [System.IO.StreamWriter] $(&amp;quot;all.csv&amp;quot;)&lt;br /&gt;
foreach($file in $a){&lt;br /&gt;
    $events = get-winevent -path $file.FullName&lt;br /&gt;
&lt;br /&gt;
    foreach ($Event in $events) { &lt;br /&gt;
        $xml = [xml]($Event.ToXml())&lt;br /&gt;
&lt;br /&gt;
        foreach ($s in $xml.Event.System.ChildNodes) {&lt;br /&gt;
            $output_file.Write($s.Name + &amp;quot;:&amp;quot; + $s.InnerText + &amp;quot;,&amp;quot;)&lt;br /&gt;
        }&lt;br /&gt;
        foreach ($d in $xml.Event.EventData.Data) {&lt;br /&gt;
            $text = $d.InnerText&lt;br /&gt;
            $text = if ($text) { $text.replace(&amp;quot;`n&amp;quot;,&amp;quot;&amp;quot;) } else { $text }&lt;br /&gt;
            $output_file.Write($d.Name + &amp;quot;:&amp;quot; + $text + &amp;quot;,&amp;quot;)&lt;br /&gt;
        }&lt;br /&gt;
        $output_file.WriteLine()&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$output_file.Flush()&lt;br /&gt;
$output_file.Close()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>