Thursday at 04:46 PM1 day I have a couple of applications that have to run with administrator privileges. One in particular is the Construction Set Extender (CSE). However I am getting tired of Windows prompting me to confirm that I want to allow it to make changes to my PC. In order to fix this you have two options. The first is to disable the UAC. Doing that will leave you open to attack if you happen to run a program with malicious code in it, so that is a very bad idea.So I searched for a solution that doesn't require you to disable the UAC. I have to ask why Microsoft just doesn't add a white list option for us to add such programs to, but they probably don't know how.Here's the process for stopping the prompt:Create an Elevated TaskOpen the Start menu, type Task Scheduler, and open the tool.Click Create Task in the right-hand panel.Name the task under the General tab.Check the box for Run with highest privileges.Go to the Actions tab, click New, select Start a program, and browse to choose your app's .exe file.Click OK to save the task. Make a Desktop ShortcutRight-click your desktop and select New > Shortcut.Paste the following command into the location box: schtasks /run /tn "YourTaskName" (replace YourTaskName with the exact name you used).Click Next, name your shortcut, and click Finish.Double-click your new shortcut to launch the app cleanly without a UAC prompt.So far I just continue to click Yes...
16 hours ago16 hr Unfortunately, doesn't work with the .BAT file launcher I use for the CSE.EDITFixed, Google AI told me what to change in the .BAT script.
9 hours ago9 hr Author 7 hours ago, Vorians said:Fixed, Google AI told me what to change in the .BAT script.Well, what was it then?
1 hour ago1 hr The .BAT file contained the line "cd .\" which means work in the same folder as the .BAT file. Launching it via the elevated privileges command caused Windows to think it was meant to be working in the same folder as schtasks.exe, which is the Windows\System32 folder, so even with elevated privileges Windows blocked it from editing anything in such an essential location, access denied (and it would have failed anyway since the DLL and EXE files the .BAT file touches aren't in System32).Google AI said to replace that line with "cd /d "%~dp0"" which redirects back to the same folder as the .BAT file.
Create an account or sign in to comment