Hi,
I’m working on Powershell for automation of a DC, I need to know 2 things.
- 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
- 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