GPOADmin provides a Powershell script that allows you to grant Edit settings, Delete, and Modify Security privileges and assigns ownership to all the GPOs in the specified domain.
The script is called GPOADmin.AddServiceAccountToAllGPOs.ps1 and can be found in the following folder on the GPOADmin server:
<installDrive>\Program Files\Quest\GPOADmin\Scripts
The Syntax is:
GPOADmin.AddServiceAccountToAllGPOs -Domain <string> -ServiceAccount <string>
For Example:
GPOADmin.AddServiceAccountToAllGPOs -Domain "MyDomain.com" -ServiceAccount "mydomain\Service Account"