Windows 8 and 8.1 Forums


How can I run a command at startup as admin?

  1. #1


    Posts : 7
    Windows 8.1 64 bit

    How can I run a command at startup as admin?


    My son's pc will not hibernate on it's own.
    I used CMD in administrator mode and ran:

    powercfg -requests

    I found that a usb audio device was currently in use. I can disable it with:

    powercfg -REQUESTSOVERRIDE DRIVER "USB Audio Device" SYSTEM

    This works, and the pc can now enter hibernation. But when it resumes, the usb driver is running again.
    Is there a way to run...

    powercfg -REQUESTSOVERRIDE DRIVER "USB Audio Device" SYSTEM

    ...using admin privileges at startup? I want it to be automated.

    Thanks.

      My System SpecsSystem Spec

  2. #2


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Try task scheduler ---

    Click image for larger version
      My System SpecsSystem Spec

  3. #3


    Posts : 2,130
    Windows 8.0 x64
      My System SpecsSystem Spec

  4. #4


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Hibernate has been a problem since XP SP3 came out. Because some bios & CPU's do not play nice with that feature. It has been suggested to just disable Hibernate (powercfg /hibernate off) and use Sleep mode if leaving the unit for a while.
      My System SpecsSystem Spec

  5. #5


    Posts : 7
    Windows 8.1 64 bit


    Quote Originally Posted by broe23 View Post
    Hibernate has been a problem since XP SP3 came out. Because some bios & CPU's do not play nice with that feature. It has been suggested to just disable Hibernate (powercfg /hibernate off) and use Sleep mode if leaving the unit for a while.
    You make a good point. And perhaps I should get to the bottom of why his usb device (a Microsoft lifechat headset he uses for skype) is preventing hibernation/sleep mode.

    Thanks all.
      My System SpecsSystem Spec

  6. #6


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Because most likely the driver is using a "keep alive" with listening to the microphone. Try unchecking for the usb ports and that device, the wake up in power settings. Also in the advanced settings for power, you can uncheck USB devices behavior for power.
      My System SpecsSystem Spec

  7. #7


    Posts : 7
    Windows 8.1 64 bit


    Quote Originally Posted by broe23 View Post
    Because most likely the driver is using a "keep alive" with listening to the microphone. Try unchecking for the usb ports and that device, the wake up in power settings. Also in the advanced settings for power, you can uncheck USB devices behavior for power.
    That was actually the first thing I did. I unchecked all usb devices with option to "allow this device to wake the computer". Could it also be skype which is causing this "keep alive" or the driver for the headset itself? When skype is turned off, the computer will hibernate properly.
      My System SpecsSystem Spec

How can I run a command at startup as admin?
Related Threads
I am unable to open Command Prompt (Admin). I get the following error: "This file does not have a program associated with it for performing this action. Perhaps .... ". Does anyone have a solution for this.
Hi, I need to execute the command prompt as admin. When I try to do it the command prompt window doesn't open and there are no errors. If I run the command prompt without admin privs it works, but I then can't do what I need to do in the admin window. Can someone help me to understand why this...
I accidentally installed an adware called Rocket tab however I uninstalled it but after restarting my computer, I am prompted with the following error message. Now, every time I start up my computer this message pops up and its very annoying. Can anyone please tell me how I can fix this error??...
Whenever i start up my computer i get a command prompt pop up that says C;\ windows\system32\cmd.exe operation completed successfully, how do i get rid of this.
Command prompt (Admin) in General Support
Everytime I try to use the above command, the console box vanishes within a second. I have also tried to install chrome, the console opens and closes winthin a second, hence not able to read any nessages. I have full administrator right. No viruses Thanks
Hey all, Been quite a while since I've posted here, but an odd problem has come up for me. Overall Windows 8 has been great and problem-free, but I'm stuck on this one. For some reason, when I open the Run box, it says "This task will be created with administrative privileges" as if I had...
How to Open a Command Prompt at Boot in Windows 8 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook