Important: Please ensure that your firewalls and third-party tools are configured to allow
the new Portnox Cloud IP ranges. Click here for more information.
How to configure AgentP to enroll with a specific domain
In this task, you will learn how to configure AgentP to enroll using a specific domain when multiple domains exist in your
authentication repositories.
Important:
Changes in Portnox Cloud make this task unnecessary, as you can now configure the enrollment domain in
your authentication repository. This article is kept for reference only.
If you have more than one domain configured in your authentication repositories, such as a mix of Entra ID and Active
Directory, AgentP may enroll with the wrong domain. For example, it may enroll as VORLON\kosh instead
of kosh@vorlon.com.
Manual solution: Add the registry key before installing and enrolling AgentP.
If you want to configure this manually on the machine, open the Windows Registry Editor and add the following
key:
Replace your-domain.com with your actual domain name.
Open Intune, go to Devices > Windows > Scripts and remediations, go to the Platform scripts tab, and click on +Add
to add the script to Intune.
In the Add PowerShell script pane, follow the wizard to add the script. Select any name
you like, browse for the .ps1 file that you saved earlier, and then assign the script to devices as
needed.