- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-23-2018 08:11 AM
I want to create a script or some other option if it is available that will present an icon on the users desk so that they can quickly disable/ enable the GP client without the reason prompt. I had a quick look but I don't see any CLI oprtions available tha I can use in a script.
Is this possible?
10-24-2018 10:09 AM
Hi @Jamesy
For the windows client there is no CLI to script global protect actions. The only nice way is to use the options provided by global protect.
(A not so nice way is to write a little program (that needs hardcoded credentials for an account with administrator permissions). With this little program you could disable the PanGPS service which does kind of the same as diconnect/disable GP with the integrated options)
10-23-2018 09:46 AM
can you not just select "allow" in the Portal/App setting. perhaps you have it set to "Allow with comment".
maybe i have missed your point so please elaborate....
10-23-2018 11:11 AM
Hi Mick,
Thanks for for the response. This is an option and one that was presented to management who requested this, but I guess they want to make it even simpler by having an icon that users can double click.
10-23-2018 11:35 AM
Hey @Jamesy
If you set your connect method to "on-demand" - instead of having to disable the app there would literally be a disconnect button 😉 Sounds pretty simple to me!
10-24-2018 02:07 AM
Hey Luke,
Thanks for this. I am aware of this option and I agree it does seem pretty easy. This has been requested from the top, so I have to make sure I confirm there is no option for a command line that would facilitate a desktop shortcut to quickly diconnect when required.
I haven't seemn anything n teh docs and none while testing in teh CLI on a Windows PC. Am I correct in saying at this point that one does not exist?
Cheers,
Jamesy
10-24-2018 02:16 AM - edited 10-24-2018 02:23 AM
Hey @Jamesy
My only thoughts are going to be the scripting options using the Msiexec - but I don't think disabling the app or disconnecting is possible entirely through a script. I've been reading the below documentation and it doesn't look to be possible.
10-24-2018 03:56 AM
Thanks Luke,
I wil ltake a look at these.
Cheers,
Jamesy
10-24-2018 10:09 AM
Hi @Jamesy
For the windows client there is no CLI to script global protect actions. The only nice way is to use the options provided by global protect.
(A not so nice way is to write a little program (that needs hardcoded credentials for an account with administrator permissions). With this little program you could disable the PanGPS service which does kind of the same as diconnect/disable GP with the integrated options)
10-24-2018 12:18 PM
10-17-2021 02:05 AM
You can just use Windows powershell as you can see my article below for how to do such things as I have dscribed this in my latest edit in the Knowledge sharing article:
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!