Determine Out of Date Group Policy with PowerShell
This PowerShell script will check the registry for the last time the policy ran, calculate the current date and compare to a set value (30 Days). It will then return $true or $false if Group Policy has not run in more than 30 days.