mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-22 13:53:39 +00:00
edits
This commit is contained in:
@ -17,14 +17,15 @@ ms.date: 10/12/2018
|
|||||||
|
|
||||||
Since the Security log uses a manifest, you can get all of the event schema from the workstation.
|
Since the Security log uses a manifest, you can get all of the event schema from the workstation.
|
||||||
|
|
||||||
Run this from an elevated powershell prompt:
|
Run the following from an elevated PowerShell prompt:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$secEvents = get-winevent -listprovider "microsoft-windows-security-auditing"
|
$secEvents = get-winevent -listprovider "microsoft-windows-security-auditing"
|
||||||
```
|
```
|
||||||
|
|
||||||
The .events property is a collection of all of the events listed in the manifest on the local machine.
|
The .events property is a collection of all of the events listed in the manifest on the local machine.
|
||||||
For each event there is a .Template property for the XML template used for the event properties (if there are any.)
|
|
||||||
|
For each event, there is a .Template property for the XML template used for the event properties (if there are any).
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user