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


Groups > alt.comp.os.windows-10 > #181994 > unrolled thread

How to make the Windows registry open in the foreground?

Started byMarion <marion@facts.com>
First post2025-02-05 11:06 +0000
Last post2025-02-06 16:32 +0100
Articles 2 — 2 participants

Back to article view | Back to alt.comp.os.windows-10


Contents

  How to make the Windows registry open in the foreground? Marion <marion@facts.com> - 2025-02-05 11:06 +0000
    Re: How to make the Windows registry open in the foreground? "R.Wieser" <address@is.invalid> - 2025-02-06 16:32 +0100

#181994 — How to make the Windows registry open in the foreground?

FromMarion <marion@facts.com>
Date2025-02-05 11:06 +0000
SubjectHow to make the Windows registry open in the foreground?
Message-ID<vnvgn1$uel$1@nnrp.usenet.blueworldhosting.com>
As an offshoot of this recent helpful tip from "T" today...
 *Tip: how to disable the UAC from the command line*
 <https://www.novabbs.com/computers/article-flat.php?id=84799&group=alt.comp.os.windows-10#84799>

I have a question which would help others more easily bypass the UAC 
for specific commands that they wish to run, that they do all day, every
day (and hence, the intervening UAC popup becomes bothersome).

What is the Windows trick I need to add to this example, which is, to my
knowledge, the absolute simplest possible example of running a command
which normally pops up the UAC without it actually popping up that UAC?

Example: regedit.exe
Use model: Win+R > regit 
Action: Up pops the registry editor WITHOUT the UAC popup in between

Setup:
1. Decide the command that you want to run without the UAC popups, e.g., 
   C:\Windows\regedit.exe
2. Edit the Windows task scheduler to add a new task for that command
   (Let's assume you want to name the command "regit" for this example.)
   Win+R > taskschd.msc 
    Name = task regit (Name it anything, as long as it's not already used) 
    [x]Run with highest privileges
    Actions = Start a program 
    Program: C:\Windows\regedit.exe
3. Create a shortcut whose target is that specific scheduled task
   Name = C:\path\to\regit.lnk 
   TARGET=C:\Windows\System32\schtasks.exe /run /TN "task regedit"
4. Optionally, create a taskbar runbox command named of the same name
   HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
   regit.exe===C:\path\to\regit.lnk

To run that command without the UAC popping up:
 Win+R > regit

Result: Up pops the registry editor WITHOUT an intervening UAC prompt!
Note: I never type "Win+R" because I have a runbox pinned to the taskbar.

Improvement: Whenever I run that command, the registry opens in the
background, as a tasbar icon, but under all windows. No big deal... but... 

Q: Does anyone know how to make it open in the foreground instead?
A: ?

[toc] | [next] | [standalone]


#182033

From"R.Wieser" <address@is.invalid>
Date2025-02-06 16:32 +0100
Message-ID<vo2kme$30qo7$1@dont-email.me>
In reply to#181994
Arlen,

> Q: Does anyone know how to make it open in the foreground instead?

Have you ever thought about *why* that that Windows task scheduler trick 
works ?   IOW, If someone knows the answer you would /most likely/ get the 
UAC prompt back.   :-(

I would suggest you take a peek the link "T" posted, and try to create a 
solution with that.

Remark:
when you do than make sure that when your script ends you put back the 
situation as you found it.  People who have disabled the UAC won't think its 
funny when you just enable it afterwards.

Regards,
Rudy Wieser

[toc] | [prev] | [standalone]


Back to top | Article view | alt.comp.os.windows-10


csiph-web