This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class AdhcResult { | |
[string]$Source | |
[string]$TestName | |
[bool]$Pass | |
$Was | |
$ShouldBe | |
[string]$Category | |
[string]$Message | |
$Data | |
[string[]]$Tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Publishers = wevtutil ep | |
# Mååånga fel, antagligen pga. att inte eventet är dokumenterat OK hos provider | |
$ErrorActionPreference = "SilentlyContinue" # Shh sh sh | |
$AllEventData = Foreach($Publisher in $Publishers){ | |
[XML]$Events = wevtutil gp $Publisher /ge /gm:true /f:xml | |
$Events.provider.events.event | Foreach { | |
[PSCustomObject]@{ | |
event_id = $_.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Author: Alex Asplund | |
Description: | |
Will perform a series of health checks on AD. | |
Designed to be ran on a Domain Controller as a Domain Admin | |
Uses WSMAN, LDAP, RPC etc to speak to other DomainControllers. | |
#> |
OlderNewer