The script is available for download from https://gallery.technet.microsoft.com//How-to-automatically-ee601d9d. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
The goal of this script is to automatically collect GPO logs for troubleshooting.
Troubleshooting GPO issues always requires collect a series of related logs, including gpresult and GpSvc. Some Customers get trouble in collecting logs especially Gpsvc. If we can use scripts to collect these logs automatically and save log files in some drive location for customers, it would be more convenient and efficient.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery