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.
-
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\.
-
Download AgentP installation files for 32-bit and 64-bit Windows devices.
The files should be named PortnoxAgentP64.msi and PortnoxAgentP86.msi and should be located in the directory created earlier.
-
Share the folder that you created previously.
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.
-
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.
-
Create a GPO for 64-bit systems.
-
Create a GPO for 32-bit systems.
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.
-
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.
-
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.
-
In the left-hand pane of the Group Policy Management Editor window, expand the nodes, right-click on the Software installation node, and select from the context menu.
-
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.
-
In the Deploy Software window, select the Advanced option and click on
the OK button.
-
In the Properties window, in the General tab, make sure that the
Name is Portnox AgentP.
-
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.
- 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.
-
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.
-
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.
-
In the left-hand pane of the Group Policy Management Editor window, expand the nodes, right-click on the Software installation node, and select from the context menu.
-
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.
-
In the Deploy Software window, select the Advanced option and click on
the OK button.
-
In the Properties window, in the General tab, make sure that the
Name is Portnox AgentP.
-
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.
- 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.
-
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.
-
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.
-
In the left-hand pane of the Group Policy Management Editor window, expand the nodes, right-click on the Software installation node, and select from the context menu.
-
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.
-
In the Deploy Software window, select the Advanced option and click on
the OK button.
-
In the Properties window, in the General tab, make sure that the
Name is Portnox AgentP.
-
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.
-
In the Advanced Deployment Options window, deactivate the following checkbox: Make
this 32-bit X86 application available to Win64 machines.
- 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.
-
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.
-
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.
-
In the left-hand pane of the Group Policy Management Editor window, expand the nodes, right-click on the Software installation node, and select from the context menu.
-
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.
-
In the Deploy Software window, select the Advanced option and click on
the OK button.
-
In the Properties window, in the General tab, make sure that the
Name is Portnox AgentP.
-
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.
-
In the Advanced Deployment Options window, deactivate the following checkbox: Make
this 32-bit X86 application available to Win64 machines.
- Click on the OK button to close the Properties window.
Result: You created a software installation package for 32-bit systems and device assignment.
Link the GPOs to an organization unit or domain
In this section, you will link the two GPOs that you created earlier (for two Windows architecture options) to the organizational unit or domain, so that these policies can be enforced for all relevant devices for that organizational unit or domain.
-
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.
-
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.
-
In the Select GPO window, control-click on the two GPOs you created in previous tasks to
select them, and then click on the OK button.
Result: New devices logging on to this domain will have Portnox™ AgentP installed and configured automatically. If you selected specific organizational units to link the GPOs, this will only apply to these organizational units.
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.
-
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.
-
Create a GPO for wired network configuration.
-
Configure the new wired network configuration GPO:
-
Link the wired network configuration GPO to an organizational unit or domain: