Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #148336
| 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 00:40 +0300 |
| Organization | UsenetServer - www.usenetserver.com |
| Message-ID | <shgjd7$1206$1@gioia.aioe.org> (permalink) |
| References | <she5mh$17nl$1@gioia.aioe.org> <a9vljg9tspkefitk4ao7qr076t60ron1r1@4ax.com> |
Cross-posted to 3 groups.
Ralph Fox writes: > What it is that leads you to believe it is not working for you? By every measure of a VPN connection, the rightclick method fails. a. It successfully connects to VPN when I run the command in an admin window b. It fails to connect to VPN when I rightclick "run as administrator" Exact same one line batch file command is being run in both cases above. freeopenvpn.bat c:\path-to\openvpn\bin\openvpn.exe freeopenvpn.ovpn > It works here. Windows 10 version 21H1. It fails on my version but I think I just need batch file syntax help. C:\> ver Microsoft Windows [Version 10.0.19042.1165] a. When it works, I type "freeopenvpn.bat" & [Enter] in an admin window. b. When it fails, I rightclick "freeopenvpn.bat" & run-as-administrator. > 1. I log in to a non-Administrator account. > 2. I right-click on a batch file and choose "Run as Administrator". The one-line batch file I right-click on is named "freeopenvpn.bat" It simply runs the desired command (which works in a cut and paste also). > 3. At the UAC prompt, I enter the password for the Administrator > account. For whatever reason, at my UAC prompt, I don't have to enter a password. > 3. A command prompt window appears. For whatever reason, my "command prompt" is instantaneous. It disappears in a nanosecond so I can't tell what it's doing inside. > 4. If the batch file contains the command WHOAMI then the command > prompt window displays the name of the Administrator account, > not the name of my non-Administrator account which I ran it from. > 5. Task Manager 'details' tab shows the user for both conhost.exe > and cmd.exe as being the Administrator account, not my > non-Administrator account which I ran it from. In the admin window, running the command is successful as measured by a. "curl icanhazip.com" reports the VPN connection b. "route print|more" reports the VPN connection c. And the command window reports a successful VPN connection What I'd like to work is to be able to "run as admin" in the file explorer. 3. I right-click on freeopenvpn.bat & select "Run as administrator" That flashes & then fails by all measures of how anyone would test VPN. a. "curl icanhazip.com" reports the original (not the VPN connection) b. "route print|more" reports the original (not the VPN connection) c. And there is no window that reports anything after it flashes instantly I don't know why "Run as administrator" doesn't work but it's perhaps because I don't understand how Windows 10 batch commands work. Is there a line or two I can add to the batch command to make it work? -- BTW, I'm using that VPN connection as we speak so I know it works normally. It just doesn't work inside the Windows File Explorer for an unknown reason.
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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