O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Parsing the audit XML file

The XML file that is generated from the New-AdminAuditLogSearch cmdlet is a standard formatted file, and appears in XML Notepad in Figure 20-13.

XML Notepad clearly displays the structure of the SearchResult.xml file.

Figure 20-13. XML Notepad clearly displays the structure of the SearchResult.xml file.

In Figure 20-13, the properties of the first event appear. The string properties appear here:

Caller
Cmdlet
Error
ObjectModified
OriginatingServer
RunDate
Succeeded

Two of the properties contain not simple strings but other objects. These two properties show up as additional XML elements and appear here:

CmdletParameters
ModifiedProperties

One thing that is often confusing is that the Windows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required