Sorry to confuse I mean how to deploy the script I should deploy script on the client as install agent GP?
As @vsys_remo mentioned, you should run it on any server or machine that has access to the API of the firewall where you have configured Global Protect.
A few considerations before you can run the script:
If everything goes as planned you should get a response like this:
<response status="success"> <result> <key>gJlQWE56987nBxIqyfa62sZeRtYuIo2BgzEA9UOnlZBhU</key> </result> </response>
This will be the value of the $apikey variable on the script.
2.- You might need to change the powershell execution policy on your client machine. In my case it was set to "Restricted" which is the default.
To find out what is your current execution policy run the following command:
To change it, run:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
This will change the execution policy for the curent user on the client machine and will allow you to run the script.
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 Live Community as a whole!
The Live Community thanks you for your participation!