Is it possible to programatically update a user's GlobalProtect credentials

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

Is it possible to programatically update a user's GlobalProtect credentials

L0 Member

Hi all,


Domain migration, lots of users, want to automate as much as possible to prevent user error.


I know that I can clear a user's GP creds using

cmdkey.exe /delete:gpcp/LatestCP

and next time GP starts (either because I restart the PANGPS service or reboot the computer) GP prompts for new credentials to connect.

However, if I update the cred with cmdkey,

cmdkey.exe /generic:gpcp/LatestCP /user:NewUserName /pass:s3cr3tN3wpwd!

GP does not recognise it and prompts for new credentials anyway (after restart as above)

It doesn't even fill the username field with the user from cmdkey 😞


So, does GP have a method to programatically change the current user's GP creds?


L1 Bithead

@Mark_F Just checking to see if you had found a solution for this one?

Unfortunately, no.


We have settled for clearing the creds with cmdkey.exe and restarting the PANGPS service to pop up a dialog to request new creds, and communicating to our users to enter their new domain account and password in this case.


It works (when users follow instructions).

I was just looking into this also. It would seem that the password which the Global Protect Client saves to the Credential Manager is not in clear text. It is saved there encrypted. If we knew how it's encrypted by the agent, then we could insert it to the Credential Manager manually or programmatically ourselves and it would probably work.

  • 3 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!