|
Post by The Jackal on Apr 7, 2023 14:29:19 GMT -8
Is there a way to run Control Panel applets, namely legacy ones (in this case the W2k Time/Date applet), withot needing to have an UAC prompt show? And no, I'm not turning off UAC.
Would a bat file do the trick? Afaik, I've tried, but couldn't come up with something that worked. Thank you for your time.
|
|
|
Post by TechSalt on Apr 7, 2023 14:44:29 GMT -8
Maybe use task scheduler? I mean, it works for EXEs so why not for CPLs?
|
|
|
Post by The Jackal on Apr 9, 2023 21:37:55 GMT -8
Maybe use task scheduler? I mean, it works for EXEs so why not for CPLs? Can you use the task scheduler for non-automated stuff? I want to open the CPL by pressing a button via PowerPro.
|
|
|
Post by OrthodoxWin32 on Apr 10, 2023 0:10:07 GMT -8
I use Surun for this. It is possible to configure a program to obtain an automatic elevation (it also works for .cpl).
Specifically, when running a program as administrator with Surun, there are two boxes on the elevation prompt : one to always start the program as administrator, and another to remove the elevation prompt when running the program as an administrator.
|
|
|
Post by TechSalt on Apr 10, 2023 4:01:39 GMT -8
Maybe use task scheduler? I mean, it works for EXEs so why not for CPLs? Can you use the task scheduler for non-automated stuff? I want to open the CPL by pressing a button via PowerPro. Yes.
|
|
|
Post by The Jackal on Apr 10, 2023 9:18:16 GMT -8
Can you use the task scheduler for non-automated stuff? I want to open the CPL by pressing a button via PowerPro. Yes. Doesn't work for me - it just opens a command window and then closes.
|
|
|
Post by The Jackal on Apr 10, 2023 9:18:46 GMT -8
I use Surun for this. It is possible to configure a program to obtain an automatic elevation (it also works for .cpl). Specifically, when running a program as administrator with Surun, there are two boxes on the elevation prompt : one to always start the program as administrator, and another to remove the elevation prompt when running the program as an administrator. Thank you, I'm going to give this a try.
|
|
|
Post by The Jackal on Apr 10, 2023 10:55:27 GMT -8
Sorted. SuRun allowed me to load the CPL once by using "SuRun: Run as Admin", but I have to do that every time via that exact context menu entry - that is too tedious for me. So I changed the command for "Open with Control Panel" item with Surun's, and now it runs just by left clicking on it. Side note, I also hid all the other entries SuRun added with the Extended command and removed each icon (I like my menus clean). So yeah, it's solved. Thank you very much, Orthodox and TechSalt, for your help.
|
|
|
Post by OrthodoxWin32 on Apr 11, 2023 7:18:15 GMT -8
Sorted. SuRun allowed me to load the CPL once by using "SuRun: Run as Admin", but I have to do that every time via that exact context menu entry - that is too tedious for me. So I changed the command for "Open with Control Panel" item with Surun's, and now it runs just by left clicking on it. Side note, I also hid all the other entries SuRun added with the Extended command and removed each icon (I like my menus clean). So yeah, it's solved. Thank you very much, Orthodox and TechSalt, for your help. Good if it works. Afterwards, I didn't have to modify anything in the registry; just check the box : run elevated so that the program (including .cpl) automatically opens as an administrator.
|
|
|
Post by TechSalt on Apr 11, 2023 9:50:36 GMT -8
Doesn't work for me - it just opens a command window and then closes. You need to put "control" in front of CPLs (like control joy.cpl and not joy.cpl)
|
|
|
Post by The Jackal on Apr 12, 2023 9:39:04 GMT -8
Doesn't work for me - it just opens a command window and then closes. You need to put "control" in front of CPLs (like control joy.cpl and not joy.cpl) Ofc, that would make more sense than directly calling the control panel applet itself. Oh well. Thank you again, both of you.
|
|
|
Post by The Jackal on Apr 12, 2023 9:40:24 GMT -8
Sorted. SuRun allowed me to load the CPL once by using "SuRun: Run as Admin", but I have to do that every time via that exact context menu entry - that is too tedious for me. So I changed the command for "Open with Control Panel" item with Surun's, and now it runs just by left clicking on it. Side note, I also hid all the other entries SuRun added with the Extended command and removed each icon (I like my menus clean). So yeah, it's solved. Thank you very much, Orthodox and TechSalt, for your help. Good if it works. Afterwards, I didn't have to modify anything in the registry; just check the box : run elevated so that the program (including .cpl) automatically opens as an administrator. Yeah, it didn't/doesn't for me for some strange reason. My (prob not really safe) workaround does the job for me though.
|
|