EvotecIT / PSWinReporting

This PowerShell Module has multiple functionalities, but one of the signature features of this module is the ability to parse Security logs on Domain Controllers providing easy to use access to AD Events.
MIT License
701 stars 69 forks source link

[-] Event Log Error on <server>: The RPC server is unavailable #63

Closed PrzemyslawKlys closed 3 years ago

PrzemyslawKlys commented 3 years ago

If the error occurs it means Remote Event Log Management firewall is not enabled. Fixing with PowerShell

$DC = Get-ADDomainController -Filter *
Invoke-Command -ComputerName $DC.HostName {
    Set-NetFirewallRule -DisplayGroup 'Remote Event Log Management' -Enabled True -PassThru | select DisplayName, Enabled
}