Estimated time to deploy - 30 minutes

Note - the GPO will only run when a computer starts. If your computers aren't restarted often, we recommended using SCCM instead, if possible.

Step 1 - placing the required files on a shared network folder

Create a shared network folder and put the following files inside: 

  • the NxLog installation MSI, found here
  • the Loom certificate bundle, found here
  • the NxLog configuration, which should be generated using the data-input page in your Loom web application
  • a file called install.bat, which should have the following content, replacing :\\file server\share with the path of the network folder you created:
@echo off

REM Install NxLog
cmd /c Msiexec /I \\file server\share\nxlog-ce-2.9.1716.msi /qn

REM Copy certificate and configuration files
cmd /c copy /Y \\file server\share\loom.cer "C:\Program Files (x86)\nxlog\cert"
cmd /c copy /Y \\file server\share\nxlog.conf "C:\Program Files (x86)\nxlog\conf"

REM Start nxlog
cmd /c net stop nxlog
cmd /c net start nxlog

Make sure the permissions of the shared folder are such that it is accessible from the designated computers.

Step 2 - create a GPO 

  1. Start the Active Directory Users and Computers snap-in. To do this, click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
  2. In the console tree, right-click your domain, and then click Properties.
  3. Click the Group Policy tab, and then click New.
  4. Type a name for this new policy (for example, NxLog distribution), and then press Enter.
  5. Click Properties, and then click the Security tab.
  6. Clear the Apply Group Policy check box for the security groups that you don't want this policy to apply to. 
  7. Select the Apply Group Policy check box for the groups that you want this policy to apply to.
  8. When you are finished, click OK.

Step 3 - assign the package 

  1. Start the Active Directory Users and Computers snap-in. To do this, click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
  2. In the console tree, right-click your domain, and then click Properties.
  3. Click the Group Policy tab, select the policy that you want, and then click Edit.
  4. Under Computer Configuration, expand Software Settings.
  5. Right-click Software installation, point to New, and then click Package.
  6. In the Open dialog box, type the full Universal Naming Convention (UNC) path of the shared installer package that you want. For example, \\file server\share\install.bat. Important - Do not use the Browse button to access the location. Make sure that you use the UNC path of the shared installer package.
  7. Click Open.
  8. Click Assigned, and then click OK. The package is listed in the right-pane of the Group Policy window.
  9. Close the Group Policy snap-in, click OK, and then close the Active Directory Users and Computers snap-in.
  10. When the client computer starts, the managed software package is automatically installed.

That's it! let us know if you have any questions or recommendations!

Did this answer your question?