Update windows/client-management/mdm/diagnosticlog-csp.md

Co-authored-by: JohanFreelancer9 <48568725+JohanFreelancer9@users.noreply.github.com>
This commit is contained in:
MatthewMWR 2021-01-08 10:38:09 -08:00 committed by GitHub
parent a9eac9ce2c
commit 64cd49d15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ Administrators can apply automation to 'results.xml' to create their own preferr
```powershell ```powershell
Select-XML -Path results.xml -XPath '//RegistryKey | //Command | //Events | //FoldersFiles' | Foreach-Object -Begin {$i=1} -Process { [pscustomobject]@{DirectiveNumber=$i; DirectiveHRESULT=$_.Node.HRESULT; DirectiveInput=$_.Node.('#text')} ; $i++} Select-XML -Path results.xml -XPath '//RegistryKey | //Command | //Events | //FoldersFiles' | Foreach-Object -Begin {$i=1} -Process { [pscustomobject]@{DirectiveNumber=$i; DirectiveHRESULT=$_.Node.HRESULT; DirectiveInput=$_.Node.('#text')} ; $i++}
``` ```
This example produces output similar to the following. This example produces output similar to the following:
``` ```
DirectiveNumber DirectiveHRESULT DirectiveInput DirectiveNumber DirectiveHRESULT DirectiveInput
--------------- ---------------- -------------- --------------- ---------------- --------------