Jump to content
Braingears

Agent Deploy - Create GPO on Domain Controller

Recommended Posts

I've created an Automate script that creates an Active Directory GPO and deploys the Automate agents via Startup Script. I've tested it on multiple domains successfully. 

  • Does not require Permissions/Credentials in Automate
  • Uses GitHub for initial GPO and PS module downloads (so not need to download files to your local server).
  • Automatically links the GPO to the root (optional Parameter in script)
  • Creates a ticket for accountability and script's results.

Please give me some feedback...

 

Agent Deploy - Create GPO on Domain Controller.xml Agent Deploy - Remove GPO on Domain Controller.xml

Edited by Braingears
Added option to Link GPO instead doing it be default.

Share this post


Link to post
Share on other sites

Installed and removed with a problem... the quick test I performed looked good.

I did run it against a 2008 DC on accident and it failed because of missing GPO cmdlets. I will edit to put an OS check at the beginning.

How are you keeping github updated with the latest agent? Is it manual or automated?

Share this post


Link to post
Share on other sites

Ok, is there any way to use your PS script with an IF LT_Installed = True and LT_URL = MyServer then Do nothing?

 

Thank you

Share this post


Link to post
Share on other sites

Hello,

Is this script still working? I tried to run it but the github link is missing the GPO zip file and the script failed. Please advise. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...