How to add multiple portals after a fresh GlobalProtect app installation on Windows?

How to add multiple portals after a fresh GlobalProtect app installation on Windows?

31375
Created On 10/05/20 16:31 PM - Last Modified 08/26/21 05:35 AM


Objective


While pre-deploying GlobalProtect app, we can add only one portal address during installation. In case of having multiple portals configured, they can only be added manually by the users to the GlobalProtect app.

Currently, we do not have an option to push multiple portals from the portal agent configuration. However, you can use a batch script to add multiple portals right after GlobalProtect app installation.


Environment


  • Windows OS
  • GlobalProtect app


Procedure


You can use below code in a batch file (save below code as .bat file) for installing GlobalProtect and adding multiple portals. It should be executed with admin privileges.

Note: This has been tested on a Windows 10 machine and the directory paths may differ. Please modify as needed for your environment.
 
Windows Registry Editor Version 5.00

msiexec -i %userprofile%\Downloads\GlobalProtect64.msi /qn PORTAL="portal-url.com"

; @ECHO OFF
; CLS
; REGEDIT.EXE /S "%~f0"
; EXIT

[HKEY_CURRENT_USER\Software\Palo Alto Networks\GlobalProtect\Settings\gp.gateway.com]

[HKEY_CURRENT_USER\Software\Palo Alto Networks\GlobalProtect\Settings\2.2.2.2]

[HKEY_CURRENT_USER\Software\Palo Alto Networks\GlobalProtect\Settings\2.2.2.3]

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/kCSArticleDetail?id=kA14u000000HB3q&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FkCSArticleDetail

Choose Language