Configuring Group Policy Sites (and more) with Powershell

Hi,

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

https://i.ibb.co/DgWCsZG/1.png

https://i.ibb.co/fvRTdPw/4.png

https://i.ibb.co/5FTG4LQ/5.png

https://i.ibb.co/jkRxVfp/6.png

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

https://i.ibb.co/9NgrRfQ/2.png

https://i.ibb.co/cgjC1gN/3.png

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.