Summary:
This article is aimed at admins looking to deploy the Agent via a GPO startup script.
Applicable to | Cloud Only |
Endpoints | Windows Only |
Release Date | April 2020 |
Difficulty | Advanced |
Prerequisites:
- Windows Server 2012 R2 or greater
- Domain Administrator account
- Microsoft Windows endpoints
- Infoctye Cloud version
- Batch file "install_agent.bat" hosted on our Github.
- (Optional, but Recommended) A Registration Key to assign your Agents to a Target Group and automatically authorize them.
Getting Ready:
- Navigate to Our Github example Install Agent bat file, and copy the code to a text editor. Save the file as "install_agent.bat". If you use Notepad, you will want to make sure it doesn't default to "install_agent.bat.txt".
- Open the file "install_agent.bat" in a text editor and set the "instancename" to your instance name.
E.G. if you login to "alpha.infocyte.com" then your "instancename" should be set to "alpha" (no quotes):set instancename=alpha
- Similarly, if you have a Registration Key, you can use the "regkey" variable. If you are not planning on using a Registration Key, you can leave it blank (not recommended).
How to Create an Agent Registration Key
set regkey=myregkey123
- Save the bat file for use in the next steps.
Create the GPO:
- Open Server Manager and go to Tools > Group Policy Management.
- In Group Policy Management Console select domain and click Group Policy Objects.
- Right-click Group Policy Objects and select New.
- For Name type "Install HUNT Agent" and click OK.
- Now right-click the new GPO in the right pane and click Edit.
- In the Group Policy Management Editor window, click Computer Configuration, then Policies, then Scripts. Double-click Startup.
- On the Scripts tab of the Startup Properties box, click Show Files. Copy the "install_agent.bat" file at the bottom of this article.
- Click Add.
- Click Browse and select the file "install_agent.bat".
- Click OK.
- Find the Domain or OU that you wish to link to the newly created GPO.
- Right-click it and click Link an Existing GPO.
- Click OK.
Congratulations! Your script should now run and install the Agent on all machines in the selected group.
Comments
0 comments
Article is closed for comments.