When your gpedit shutdown script is not running, check your time settings and ensure you're using an administrator account.