Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW can someone write the powershell script for me please?

  • Thread starter Thread starter hina
  • Start date Start date
  • Replies Replies 7
  • Views Views 5K

hina

Member
Messages
14
Reaction score
0
Points
1
C:\Program Files\Palo Alto Networks\GlobalProtect\PanGPS.exe -registerplap
 
Have you tried Bing the answer.
 
Given the lack of info in the request, I am not even sure what the script should do.
 
hi @user02 thank you for replying i am assigned a task to create connect before logon Global Protect (VPN) package and deploy it through SCCM. these are two execution commands that works on my local machine.
  1. C:\Program Files\Palo Alto Networks\GlobalProtect\PanGPS.exe -registerplap
  2. reg.exe ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\CBL" /f /t REG_SZ /v "Portal1" /d "pagp.cority.com" i need help to create a sccm application or package using these two commands in sccm to deploy
 
we used psdat
Execute-Process -Path "$envProgramFiles\Palo Alto Networks\GlobalProtect\PanGPS.exe" -arguments "-registerplap" -WindowStyle Hidden
Set-RegistryKey -Key 'HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\CBL' -Name 'TrustedIdPDomains' -Value "domain name" -Type String
 

@dj3094 thank you for replying how can i execute it through SCCM that is the the only tool we are using​

 
we created application using psdat and deploy through sccm
 
Created a script package to run a cmd which included he following. Prior to doing that, you should manually craft the registry settings and export as GlobalProtectCBL.reg

REM - run GP installer
msiexec /i "GlobalProtect64.msi" /quiet PORTAL="xxxwebvpn-useast.xxx.com" CONNECTMETHOD="on-demand"

REM - run PanGPS.exe -registerplap
"C:\Program Files\Palo Alto Networks\GlobalProtect\PanGPS.exe" -registerplap

REM - install registry setting change
reg import GlobalProtectCBL.reg
 

Forum statistics

Threads
7,197
Messages
28,083
Members
18,355
Latest member
mattjimf

Latest posts

Back
Top