- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-28-2025 08:04 AM
I'm looking for a PowerShell script or commands to disconnect the Global Protect VPN and preventing the auto connection happen again and enforce the user to enter the credentials again.
In addition, I need same thing for MacBook devices. Thank you!.
10-28-2025 09:29 AM
Hi @Jon_Palo92 ,
GlobalProtect is designed to be fully configurable by your organization's IT department to prevent users from disconnecting.
The goal of this configuration is often to enforce a "mandatory always-on" security posture, ensuring your device remains protected and compliant with company policy at all times. If the administrator sets the connection method to "Always On" and disables the option to disconnect in the Portal configuration, the VPN client will reconnect after any disruption or forced shutdown.
Since the ability to disconnect is controlled by your organization's security policy and firewall administrator you should reach out directly to your company's IT Help Desk or Security Department. They are the only ones who can verify your current security policy and make the necessary changes to the GlobalProtect Portal configuration to allow you to disconnect or to change your connection settings.
It kinda depends on your connect method and whether or not disconnecting is allowed in your GP portal configuration:
Kind regards,
-Kim.
10-28-2025 10:52 AM
Hello @kiwi
I’m working on a project where I need to apply a script to disconnect non-managed devices. So far, I’ve managed to send a command to disconnect the GlobalProtect VPN session on a Windows machine. However, as you’re aware, it automatically reconnects without requiring the user to enter their credentials again. I understand this behavior is due to the current settings in the Palo Alto firewall.
My question is: Is there a way on the Windows device to clear the cache, session, or any other stored data that would force the user to re-enter their credentials when the VPN reconnects or auto-connects?
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!

