Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #148369

Re: Why Windows 10 batch admin isn't the same as its GUI admin?

From Scott Lurndal <scott@slp53.sl.home>
Newsgroups alt.comp.os.windows-10, alt.comp.microsoft.windows, alt.msdos.batch
Subject Re: Why Windows 10 batch admin isn't the same as its GUI admin?
Date 2021-09-11 22:08 +0300
Organization UsenetServer - www.usenetserver.com
Message-ID <shiur9$1gui$1@gioia.aioe.org> (permalink)
References <she5mh$17nl$1@gioia.aioe.org> <a9vljg9tspkefitk4ao7qr076t60ron1r1@4ax.com> <shf5vl$f1m$1@dont-email.me> <shhs99$ogs$1@gioia.aioe.org> <iq3b2eFhkdgU1@mid.individual.net>

Cross-posted to 3 groups.

Show all headers | View raw


Andy Burns writes:
> I'd "run as admin" a .cmd batch file that calls openvpn.exe with the 
> .ovpn file as a parameter?

While setting up the file association of *.ovpn to run the OpenVPN GUI is
likely what most people do, I can't doubleclick on the ovpn file because
that would run it as the user, who doesn't have the necessary permissions to
change the routing table. (Somehow, the OpenVPN GUI gets around that Windows
10 restriction, which didn't exist in Windows 7, by the way, AFAIR.)

But now, thanks to Herbert Kleebauer, the problem is forever resolved. 

What I didn't realize was that the command window assumes different paths
than does the Windows File Explorer. Once Herbert Kleebauer explained the
Windows File Explorer works differently from the command line, the pieces
fell into place almost instantly thereafter...

1. In an administrator command window, I paste these commands to start VPN
   REM freeopenvpn.bat
   cd C:\pathto\configs\
   c:\pathto\openvpn\bin\openvpn.exe C:\pathto\configs\freeopenvpn.ovpn

2. Or, in an administrator window, I run _that_ set as a single batch file
   C:\pathto\configs\freeopenvpn.bat

3. Or, in the Windows File Explorer, I right click to run as administrator
   {Rightclick on freeopenvpn.bat}{Run as administrator}

> I'm surprised windows follows the .ovpn file association to even do that

I think most people who install the openvpn GUI use its GUI to get on VPN.
  https://openvpn.net/community-downloads/

But the only thing I use in the openvpn package is the client itself.
 https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.3-I601-amd64.msi

I believe the Windows OpenVPN GUI has some magic to get around the fact the
Windows 10 routing table has to be managed as administrator (but I don't use
the OpenVPN GUI so I don't know how it tricks Windows into thinking its an
admin when it's being run as the user).

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-10 02:34 +0300
  Re: Why Windows 10 batch admin isn't the same as its GUI admin? Ralph Fox <-rf-nz-@-.invalid> - 2021-09-10 19:08 +1200
    Re: Why Windows 10 batch admin isn't the same as its GUI admin? Paul <nospam@needed.invalid> - 2021-09-10 04:45 -0400
      Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 12:18 +0300
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Andy Burns <usenet@andyburns.uk> - 2021-09-11 10:26 +0100
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 22:08 +0300
            Re: Why Windows 10 batch admin isn't the same as its GUI admin? Andy Burns <usenet@andyburns.uk> - 2021-09-11 20:15 +0100
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-12 13:25 +0300
      Re: Why Windows 10 batch admin isn't the same as its GUI admin? Ralph Fox <-rf-nz-@-.invalid> - 2021-09-12 06:58 +1200
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 22:59 +0300
    Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 00:40 +0300
      Re: Why Windows 10 batch admin isn't the same as its GUI admin? Andy Burns <usenet@andyburns.uk> - 2021-09-11 08:57 +0100
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 11:26 +0300
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 11:33 +0300
            Re: Why Windows 10 batch admin isn't the same as its GUI admin? Andy Burns <usenet@andyburns.uk> - 2021-09-11 09:44 +0100
      Re: Why Windows 10 batch admin isn't the same as its GUI admin? Herbert Kleebauer <klee@unibwm.de> - 2021-09-11 11:03 +0200
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Andy Burns <usenet@andyburns.uk> - 2021-09-11 10:05 +0100
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Ralph Fox <-rf-nz-@-.invalid> - 2021-09-12 07:15 +1200
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 13:00 +0300
        Re: Why Windows 10 batch admin isn't the same as its GUI admin? Zaidy036 <Zaidy036@air.isp.spam> - 2021-09-11 17:29 -0400
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Ralph Fox <-rf-nz-@-.invalid> - 2021-09-12 09:48 +1200
            Re: Why Windows 10 batch admin isn't the same as its GUI admin? Paul <nospam@needed.invalid> - 2021-09-11 18:54 -0400
              Re: Why Windows 10 batch admin isn't the same as its GUI admin? Ralph Fox <-rf-nz-@-.invalid> - 2021-09-12 11:30 +1200
                Re: Why Windows 10 batch admin isn't the same as its GUI admin? Paul <nospam@needed.invalid> - 2021-09-11 23:47 -0400
          Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-12 06:00 +0300
            Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-12 12:11 +0300
  Re: Why Windows 10 batch admin isn't the same as its GUI admin? JJ <jj4public@gmail.com> - 2021-09-10 16:47 +0700
    Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-11 00:22 +0300
  Re: Why Windows 10 batch admin isn't the same as its GUI admin? Brian Gregory <void-invalid-dead-dontuse@email.invalid> - 2021-09-12 10:25 +0100
    Re: Why Windows 10 batch admin isn't the same as its GUI admin? Scott Lurndal <scott@slp53.sl.home> - 2021-09-12 14:34 +0300

csiph-web