dreic wroteThis is what i get when i execute that command:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
EnableLUA REG_DWORD 0x1
This means that you
do have UAC enabled. Even if your user is an administrator, you are required to "run as admin" when you wish applications to take advantages of protected system actions; that's how UAC works. It's not disabled as you stated before.
dreic wroteWell i can't right click on openvpn config and run as administrator so how to run it then as administrator?
Also correct. You can only run programs "as an administrator" and a config file is just a plaintext file with a .ovpn extension that the context menu and OpenVPN-GUI program recognizes.
If you want to run it from a command prompt, you'll need to invoke an elevated command prompt "as administrator" and call:
openvpn.exe --config c:\path\to\your.ovpn
Optionally, just use the OpenVPN-GUI, run it as an administrator and all the configs it launches will have the proper admin access.
If you'd like, I also maintain an early-preview installer that automatically elevates the OpenVPN GUI to highest available user permissions at my
OpenVPN Previews project.