Configuring Group Policy Sites (and more) with Powershell


I’m working on Powershell for automation of a DC, I need to know 2 things.

  1. How do I add sites into Group Policy Management (image below) with Powershell

  1. How do I edit Group policy Management Editor configurations with Powershell

The ADReplicationSite command works for adding sites to the AD Sites and Services window, and there are no other commands to allow working in the GPO window.

Similarly the GPO related commands have nothing related to this as well (yes there are commands that allow the GPO to link to the site, which I have already done, but there are no commands to show the sites in GP window which is what Im looking for).

Thank You