Run XY as Administrator w/o User Account Control pop-up

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
sfwood
Posts: 125
Joined: 10 Jan 2012 21:07

Run XY as Administrator w/o User Account Control pop-up

Post by sfwood »

The following steps are assembled from a few different sources, and may be helpful to some. The procedure creates a second shortcut for XY that opens XY with Administrator priveleges without the Windows UAC (User Account Control) pop-up, and which can be pinned to the Start menu and Taskbar along side the normal User-level XY shortcut (usually two shortcuts for the same program will be linked and can't do this). This method uses only native Windows settings & utilities, no third party stuff required. This was put together using Windows 7 Home--other Windows versions may allow simpler avoidance of the UAC pop-up. This general technique should solve the UAC pop-up hassle for any other program that suffers from it as well.

1. Open Windows Task Scheduler: Click the Start button, type "task" in search box, and select "Task Scheduler"

2. In Task Scheduler, click "Create Task" on the "Action" menu or on the "Action" panel at the right

3. Fig. 1--On the "General" tab of the "Create Task" dialog, enter a name in the "Name" field--
XYplorer [Admin],
and ensure that "Run with highest priveleges" is selected
Fig-1.png
4. Fig. 2--On the "Actions" tab of the "Create Task" dialog, click the "New.." button, and in the "New Action" dialog, in the "Program/script" field, enter--
C:\WINDOWS\System32\cmd.exe
and in the "Add arguments" field, enter--
/c start "" "C:\Program Files (x86)\XYplorer\XYplorer.exe"
click "OK"
Fig-2.png
5. On the "Conditions" tab of the "Create Task" dialog, deselect "Start the task only if on AC power"

6. On the "Settings" tab of the "Create Task" dialog, ensure "Allow task to run on demand" is selected; Change the "Do not start a new instance" button to "Run a new instance in parallel" to allow starting an XY Admin-level window when a User-level window is already open and allow running Admin and User level windows at the same time

7. Close the Task Scheduler, and then in the start menu folder where the normal XYplorer shortcut is located, right-click in an empty area and select "New\(New) Shortcut" (A quick way to get to the folder is to point to it in the Start Menu, right-click, and select "Open")

8. Fig. 3--In the "Create Shortcut" dialog, in the text field under "type the location.." enter--
C:\Windows\System32\schtasks.exe /run /tn "XYplorer [Admin]"
Fig-3.png
9. Click "Next", then enter a name and click "Finish" to close the "Create Shortcut" dialog; Right-click the new shortcut and select "Properties"; select "Shortcut" tab in properties box; click "Change Icon" button; navigate to the XY exe and select the XY icon

(Note: In step 4 in the "New Action" dialog, you could enter XYplorer.exe directly in the "Program/script" field and dispense with the "Add arguments" entry, but then for some reason the new shortcut will open XY behind other open windows)
To see the attached files, you need to log into the forum.
Last edited by sfwood on 19 Sep 2014 22:38, edited 12 times in total.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Starting XY in Admin Mode w/ no User Account Control pop

Post by TheQwerty »

Thanks for sharing this well-illustrated procedure! :appl:

Post Reply