This recipe shows you how to forward events.
- Configure event collection on each server—first on DC1 (locally) then remotely to SRV1:
wecutil qc /quiet | Out-Null Invoke-Command -ComputerName SRV1 ` -ScriptBlock {wecutil qc /quiet} | Out-Null
- Create the collector security group, add DC1:
$ECGName='Event Collector Group' New-ADGroup -Name $ECGName -GroupScope Global ` -Path 'OU=IT,DC=Reskit,DC=Org' Add-ADGroupMember -Identity $ECGName -Members'DC1$'
- Display membership of this new group:
Get-ADGroupMember -Identity $ECGName
- Create a new GPO to configure event collection:
$GPOName = 'Event Collection' $ECGName = 'Event Collector Group' $gpo = New-GPO -Name $GPOName $link = New-GPLink -Name $GPOName ` -Target "DC=Reskit,DC=Org" ...