Posted On May 22, 2020

How to Enable GPUPDATE When Connected via OpenVPN Client

kimconnect 0 comments
blog.KimConnect.com >> Codes , Networking >> How to Enable GPUPDATE When Connected via OpenVPN Client
// Explanation: to prevent locking of processes, we set a proxy batch file (on_connect.bat) to call gpupdate (gpupdate.bat)
// add this line to the ovpn-File:
up 'C:\\Users\\%USERNAME%\\OpenVPN\\config\\on_connect.bat'

// on_connect.bat:
start .\gpupdate.bat

// gpupdate.bat:
:gpupdate
echo trigger gpupdate ...
c:\windows\system32\gpupdate.exe /force
if errorlevel 0 goto exit
goto gpupdate
:exit

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Resolving CRM Error Upon Login

Symptom: Error Message when trying to login to CRM [caption id="attachment_7481" align="alignnone" width="237"] INVALID ACTION[/caption]…

How to Migrate AP From One Controller to Another

Option 1: Backup the configs of the old controller Restore the configs to the new…

PowerShell: Disable Virtual Machine Queuing on Hyper-V Hosts

What is VMQ? Virtual Machine Queuing is a shortcut to deliver packet data from the…