Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just set up Dexpot to start WampServer automatically when I enter a new desktop. The problem is that I've hidden my taskbar, and WampServer needs administrative rights. So I have to use Alt-Tab to get to the "Give admin rights" box, and accept it. This is not as automatically as I want. Is it possible to give WampServer admin rights every time automatically?

share|improve this question
    
Why not run WAMP server as Service?? –  Akshat Mittal Jun 23 '12 at 10:12

1 Answer 1

up vote 11 down vote accepted

Open Run (Windows Key + R) and type taskschd.msc. Now click create task. You'll see a window like this. Give your task a name, and select the option named Run with highest privileges. You may also give the task a description and/or change the user (Though if the user doesn't have administrator rights, you'll run into issues).

Create task window

When you're done giving it a name and setting Run with highest privileges, go to the actions tab and hit the New button. You will now see a window like this, click Browse and find the location of your WAMP server application and click ok. Add any arguments if you need.

Create an action

You can now run this application from Task Scheduler however it makes it easier to have a shortcut.

Navigate to your desktop or a folder where you want a shortcut to launch WAMP and right-click, then click new then click shortcut. Now, when it says What item would you like to create a shortcut for? type in the bar schtasks /run /tn “taskname”. Replace taskname with the name you gave the task you created.

You can now run the shortcut you created and you won't get any UAC dialogues.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.