Get-WinEvent -FilterHashTable @{LogName='Microsoft-Windows-GroupPolicy/Operational'; StartTime=(Get-Date).AddDays(-30)} | Export-CSV C:\Temp\ZZ_WinEvents.csv -NoTypeInformation
Get-WinEvent -ProviderName 'Microsoft-Windows-grouppolicy'
you'd get a bunch of informational events, but I don't see them as successful, it was seen as informational.
foreach($computer in $computers){
Get-WinEvent -ProviderName 'Microsoft-Windows-grouppolicy' -Computername $computer
}
Import-Module ActiveDirectory
$Computers = Get-ADComputer -Filter *
ForEach($Computer in $Computers){
Get-WinEvent -ProviderName 'Microsoft-Windows-GroupPolicy' -ComputerName $Computer
}
Get-Service -ComputerName MachineNameFailing -Name *RPC*
Get-Service -ComputerName MachineNameWorking -Name *RPC*
Get-Service -ComputerName MachineNameFailing -Name "NAmeOfThe Service"
Get-Service -ComputerName MachineNameFailing | where{ $_.Name -match "NAME"}
Open in new window
This will look for the Microsoft/Windows/GroupPol
Will find anything doesn't match "information" at the log level. (warnings and errors).
Source: https://social.technet.microsoft.com/Forums/windows/en-US/0a9683ab-096f-4a29-a51a-fa685514e9f7/geteventlog-accessing-applications-ans-servies-logs?forum=winserverpowershell