Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Don Kuenz, KB7RPU Newsgroups: alt.comp.os.windows-10,microsoft.public.windows.server.general Subject: Re: RD WinKey-R "This task will be created with administrative privileges." Date: Fri, 16 Aug 2019 04:01:49 -0000 (UTC) Organization: A noiseless patient Spider Lines: 89 Message-ID: <20190815d@crcomp.net> References: <20190814c@crcomp.net> <1p4l8fwuokk37$.dlg@v.nguard.lh> <20190814e@crcomp.net> <20190815a@crcomp.net> <1ppxv8it296z0.dlg@v.nguard.lh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 16 Aug 2019 04:01:49 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="cec46c9e440f5b5cd35edb1d310b7c11"; logging-data="3737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hZJ/xvGQVhJB2+dCnvmiO" Cancel-Lock: sha1:PvyVB1XXdd1BB2Zz3BwB6MOs6wc= Xref: csiph.com alt.comp.os.windows-10:96279 microsoft.public.windows.server.general:68 In alt.comp.os.windows-10 VanguardLH wrote: > Nothing in your original post about remoting to the host where you want > to use its Run dialog. I haven't used RDP for a long time. The only > thing I remember about the /admin switch (was /console before) was that > I had to use it to kill sessions that users left open when they left > work at the end of the day. /admin does not confer any admin privileges > in the Windows account on the remote host, just admin functions within > the Terminal service running there. On the remote host, were you > logging into an admin-level account? > > Nothing mentioned about logging in under a domain account (versus a > local account). Since you are logging into the remote host using a > domain account, and because a local account on the remote host works > okay, sure seems like the roaming profile or PDC is pushing a policy to > your remote host that alters the Run dialog. > > When RDP'ing to the remote host: > 1. Logging into remote host's local account works. > 2. Logging into remote host's domain account doesn't work. > The difference is using a roaming profile and pushed policies for #2. > > I take it enabling the ""User Account Control: Use Admin Approval Mode > for the built-in Administrator account" policy /on the remote host/ > didn't help there for the remote host's Run dialog. > > I suspect Ctrl+Shift+Enter can be used only locally, just like > Ctrl+Alt+Del. With RDP, you use Ctrl+Alt+End to effect Ctrl+Alt+Del on > the remote host. I think another way is to run OnScreen Keyboard > (osk.exe), press and hold Ctrl+Alt on your local host's keyboard, and > press the Del button on the OSK display. Since RDP hosts can be chained > (host A remotes to host B that remotes to host C), you'd run OSK on host > B to send Del to host C to do the Ctrl+Alt+Del on host C. > > https://docs.microsoft.com/en-us/windows/win32/termserv/terminal-services-shortcut-keys > > I don't see an RDP hotkey substitute for Ctrl+Shift+Enter (to effect > that key combo on the remote host), so maybe using OSK would work. > > In RDP (on your local host), check the keyboard config: Local Resources > tab, Keyboard section. Check which setting is used. If it is set to > "Only when using the full screen" but you're windowed, then the Windows > key combos won't be sent to the remote host. See what happens if you > change to "On the remote computer". > > https://www.nextofwindows.com/how-to-use-the-same-win-key-combinations-on-remote-desktop > > "On the remote computer" has RDP hook into the keyboard at a lower level > (probably capturing the keyboard's scan codes). You can try the > different keyboard hooking to see if one of them lets you pass the > Ctrl+Shift+Enter key combo without having to use OSK. Of course, this > doesn't make it automatic that the Run dialog on the remote host will > run the command with admin privs. That seems to be a problem with the > domain login, roaming profile, and policy pushing on the remote host. My modus operandi is to use rdesktop from a couple of BSD workstations to access my primary W16S host, which acts as a RD jump off point to access various servers and workstations in the wild, so to speak. You're right, the RD wrinkle should've been mentioned by me from the get-go. Except that it's so automatic and ingrained that it didn't cross my mind until today. There is no RD hotkey substitute known to me at this point that sends a WinKey-R to the far end of a Remote Desktop session. So be it, a right mouse click over the start button reveals a menu with a Run item. Good enough. It turns out that Ctrl-Shift-Enter is sent to the far Remote Desktop session and opens the UAC warning on the RD host as expected. Here's how the various scenarios play out with mstsc /admin Local Administrator on W10P shows shield Local User on W10P doesn't show shield but elevates on Ctrl-Shift-Enter Local/domain Administrator accounts on W12S and below show shield This fills me with confidence that the other scenarios will also work. The only fly in the ointment is that BSD rdesktop lacks an /admin flag. It does use -0 as a /console flag and it knows RDP5. So, it probably can be brought up to speed relatively easy. Thank you, 73, -- Don Kuenz KB7RPU There was a young lady named Bright Whose speed was far faster than light; She set out one day In a relative way And returned on the previous night.