I recently needed to export a list of all GPOs within a client's environment to HTML file. Rather than going through each one individually and exporting out, I used this simple PowerShell command to get the job done.
I create a new folder called GPOExport within C: root (C:\GPOExport), then ran the following command: