Onboard Windows devices with AgentP using Group Policy

In this topic, you will learn how to deploy Portnox™ AgentP remotely on company devices using Group Policy.

Prerequisites:

  • The network must be based on Active Directory Domain Services (AD DS). That is, at least one server must have the AD DS role. To learn more about AD DS, see Active Directory Domain Services Overview on Microsoft Learn.

  • The devices that you want to manage must be joined to the domain, and users that you want to manage must use domain credentials to log on to their devices.

  • You must have permission to edit the Group Policy in the domain.

Perform the following tasks on your AD DS server.

Create and share a GPO folder

In this section, you will create a folder that contains AgentP installation files, and that will be used by other computers for installation.

  1. Create a GPO directory in the local file system of the AD DS server.

    You can create the directory with any name you like and anywhere in the local file system, as long as you be able to share the directory as a folder.

    For example, create the directory C:\GPO\.

  2. Download AgentP installation files for 32-bit and 64-bit Windows devices.
    1. Open the AgentP download page (clear.portnox.com/agentinstall) in the browser on the AD DS server.
    2. Scroll down to the Windows installation files and click on the tiles: Windows *.msi for x64 and Windows *.msi for x86.

    3. Save the downloaded files in the directory you created in the previous step.

    4. Rename the files to remove the version number.

    The files should be named PortnoxAgentP64.msi and PortnoxAgentP86.msi and should be located in the directory created earlier.

  3. Share the folder that you created previously.
    1. Right-click on the folder in the directory tree and select the Properties option from the context menu.

    2. In the Properties window, click on the Sharing tab, and then click on the Advanced Sharing button.

    3. In the Advanced Sharing window, activate the Share this folder checkbox, and then click on the Permissions button.

    4. In the Permissions window, click on the Authenticated Users group, and make sure that the checkbox is activated in the Read permissions row and in the Allow column.

    5. Click on the OK button to close the Permissions window.
    6. Click on the OK button to close the Advanced Sharing window.
    7. In the Properties window, click on the Security tab, click on the Domain Users group, and verify that there are check marks in the Allow column for the following rows: Read & execute, List folder contents, and Read.

      If not, click on the Edit button to edit permissions.

    8. Click on the Close button to close the Properties window.

Result: You shared a folder with AgentP installation files, which will be used by the GPO objects.

Create GPOs for 64-bit and 32-bit Windows

In this section, you will create a Group Policy Objects (GPOs) that will be used to automatically deploy AgentP on devices with 64-bit or 32-bit versions of Windows.

  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. Create a GPO for 64-bit systems.
    1. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Objects node and select the New option from the context menu.

    2. In the New GPO window, enter a Name for the new 64-bit system GPO, and click on the OK button.

      In this example, we used the name AgentP install policy for 64-bit but you can use any name you like.
  3. Create a GPO for 32-bit systems.
    1. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Objects node and select the New option from the context menu.

    2. In the New GPO window, enter a Name for the new 32-bit system GPO, and click on the OK button.

      In this example, we used the name AgentP install policy for 32-bit but you can use any name you like.

Result: You created two GPOs, one for 64-bit Windows, and one for 32-bit Windows.

Create a software installation package for 64-bit systems and user assignment

In this section, you will create a software installation package that will be used to automatically deploy AgentP on devices with 64-bit versions of Windows and assign it to the users of these devices.

Note: While many organizations choose user-based assignment, we recommend device-based assignment instead, because with user-based assignment, AgentP would need to be installed every time the user logs on. If you want to create a package to assign to devices, not users, go to the following section instead: Create a software installation package for 64-bit systems and device assignment.
  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Object that you created earlier for 64-bit systems and select the Edit option from the context menu.

  3. In the left-hand pane of the Group Policy Management Editor window, expand the User Configuration > Policies > Software Settings nodes, right-click on the Software installation node, and select New > Package from the context menu.

  4. In the Open window, browse to the PortnoxAgentP64.msi file in the folder that you created and shared in an earlier task.

    If a warning appears saying that Windows cannot verify that the path is a network location, click on the Yes button.

  5. In the Deploy Software window, select the Advanced option and click on the OK button.

  6. In the Properties window, in the General tab, make sure that the Name is Portnox AgentP.

  7. In the Properties window, in the Deployment tab, in the Deployment type section, select the Assigned option, and then in the Deployment options section, activate the following checkboxes: Uninstall this application when it falls out of scope of management and Install this application at logon.

  8. Click on the OK button to close the Properties window.

Result: You created a software installation package for 64-bit systems and user assignment.

Create a software installation package for 64-bit systems and device assignment

In this section, you will create a software installation package that will be used to automatically deploy AgentP on devices with 64-bit versions of Windows and assign it to these devices.

Note: If you want to create a package to assign to users, not devices, go to the following section instead: Create a software installation package for 64-bit systems and user assignment.
  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Object that you created earlier for 64-bit systems and select the Edit option from the context menu.

  3. In the left-hand pane of the Group Policy Management Editor window, expand the Computer Configuration > Policies > Software Settings nodes, right-click on the Software installation node, and select New > Package from the context menu.

  4. In the Open window, browse to the PortnoxAgentP64.msi file in the folder that you created and shared in an earlier task.

    If a warning appears saying that Windows cannot verify that the path is a network location, click on the Yes button.

  5. In the Deploy Software window, select the Advanced option and click on the OK button.

  6. In the Properties window, in the General tab, make sure that the Name is Portnox AgentP.

  7. In the Properties window, in the Deployment tab, in the Deployment type section, select the Assigned option, and then in the Deployment options section, activate the following checkbox: Uninstall this application when it falls out of scope of management.

  8. Click on the OK button to close the Properties window.

Result: You created a software installation package for 64-bit systems and device assignment.

Create a software installation package for 32-bit systems and user assignment

In this section, you will create a software installation package that will be used to automatically deploy AgentP on devices with 32-bit versions of Windows and assign it to the users of these devices.

Note: While many organizations choose user-based assignment, we recommend device-based assignment instead, because with user-based assignment, AgentP would need to be installed every time the user logs on. If you want to create a package to assign to devices, not users, go to the following section instead: Create a software installation package for 32-bit systems and device assignment.
  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Object that you created earlier for 32-bit systems and select the Edit option from the context menu.

  3. In the left-hand pane of the Group Policy Management Editor window, expand the User Configuration > Policies > Software Settings nodes, right-click on the Software installation node, and select New > Package from the context menu.

  4. In the Open window, browse to the PortnoxAgentP86.msi file in the folder that you created and shared in an earlier task.

    If a warning appears saying that Windows cannot verify that the path is a network location, click on the Yes button.

  5. In the Deploy Software window, select the Advanced option and click on the OK button.

  6. In the Properties window, in the General tab, make sure that the Name is Portnox AgentP.

  7. In the Properties window, in the Deployment tab, in the Deployment type section, select the Assigned option, and then in the Deployment options section, activate the following checkboxes: Uninstall this application when it falls out of scope of management and Install this application at logon. Then, click on the Advanced button.

  8. In the Advanced Deployment Options window, deactivate the following checkbox: Make this 32-bit X86 application available to Win64 machines.

  9. Click on the OK button to close the Properties window.

Result: You created a software installation package for 32-bit systems and device assignment.

Create a software installation package for 32-bit systems and device assignment

In this section, you will create a software installation package that will be used to automatically deploy AgentP on devices with 32-bit versions of Windows and assign it to these devices.

Note: If you want to create a package to assign to users, not devices, go to the following section instead: Create a software installation package for 32-bit systems and user assignment.
  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Object that you created earlier for 32-bit systems and select the Edit option from the context menu.

  3. In the left-hand pane of the Group Policy Management Editor window, expand the Computer Configuration > Policies > Software Settings nodes, right-click on the Software installation node, and select New > Package from the context menu.

  4. In the Open window, browse to the PortnoxAgentP86.msi file in the folder that you created and shared in an earlier task.

    If a warning appears saying that Windows cannot verify that the path is a network location, click on the Yes button.

  5. In the Deploy Software window, select the Advanced option and click on the OK button.

  6. In the Properties window, in the General tab, make sure that the Name is Portnox AgentP.

  7. In the Properties window, in the Deployment tab, in the Deployment type section, select the Assigned option, and then in the Deployment options section, activate the following checkbox: Uninstall this application when it falls out of scope of management. Then, click on the Advanced button.

  8. In the Advanced Deployment Options window, deactivate the following checkbox: Make this 32-bit X86 application available to Win64 machines.

  9. Click on the OK button to close the Properties window.

Result: You created a software installation package for 32-bit systems and device assignment.

Optional: Create a GPO for wired network authentication

If you prefer to control your wired network configuration using a GPO instead of having it configured via AgentP, you can create a GPO object to configure the wired network.

If you find that the configuration of wired connection using AgentP is not working as intended, which may be the case with certain network configurations, you can use the certificate obtained by AgentP and create a GPO to manually authenticate with the wired network using this certificate.
  1. Run the Group Policy Management app.

    For example, start typing group into the search field on the taskbar and then click on the Group Policy Management app entry.

  2. Create a GPO for wired network configuration.
    1. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Objects node and select the New option from the context menu.

    2. In the New GPO window, enter a Name for the new wired configuration GPO, and click on the OK button.

      In this example, we used the name Wired network configuration but you can use any name you like.
  3. Configure the new wired network configuration GPO:
    1. In the left-hand pane of the Group Policy Management window, right-click on the Group Policy Object that you just created and select the Edit option from the context menu.

    2. In the left-hand pane of the Group Policy Management Editor window, expand the Computer Configuration > Policies > Windows Settings > Security Settings nodes, and then left-click on the System Services node. In the right-hand pane, scroll down to the Wired AutoConfig entry.

    3. Double-click on the Wired AutoConfig entry to open the Wired AutoConfig Properties window, activate the Define this policy setting checkbox, and select the Automatic option. Then, click on the OK button.

    4. In the left-hand pane of the Group Policy Management Editor window, left-click on the Wired Network (IEEE 802.3) Policies node. In the right-hand pane, right-click on the empty space, and then select the Create a New Wired Network Policy for Windows Vista and Later Releases option from the context menu.

    5. In the New Wired Network Policy Properties window, in the General tab, enter a name for this new policy.

      In this example, we used the name Wired network configuration but you can use any name you like.
    6. In the Security tab, in the Select a network authentication method field, select the Microsoft: Smart Card or other certificate option, in the Authentication Mode field, select the Computer only option, and then click on the Properties button.

    7. In the Smart Card or other Certificate Properties window, select the Use a certificate on this computer option, activate the Use simple certificate selection (Recommended) checkbox, activate the Verify the server’s identity by validating the certificate checkbox, and in the Trusted Root Certificate Authorities list, select the DigiCert Trusted Root G4 certificate (the Cloud RADIUS server’s root CA certificate).

    8. Click on the OK button in the Smart Card or other Certificate Properties window and then click on the OK button in the New Wired Network Policy Properties window to create the new wired network policy.
  4. Link the wired network configuration GPO to an organizational unit or domain:
    1. In the left-hand pane of the Group Policy Management window, right-click on a domain or an organizational unit, and select the Link an Existing GPO option.

    2. In the Select GPO window, click on the wired network configuration GPO you created and then click on the OK button.