How can I run a command at startup as admin?

prisonbreak

New Member
Messages
7
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 Computer

System One

  • OS
    Windows 8.1 64 bit
    Computer type
    PC/Desktop
    CPU
    i5 4690k
    Motherboard
    MSI Z97M gaming
    Memory
    8 GB
    Graphics Card(s)
    MSI GTX 770 OC
    Browser
    firefox
Try task scheduler ---

screenshot_133.jpg
 

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
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 Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
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 Computer

System One

  • OS
    Windows 8.1 64 bit
    Computer type
    PC/Desktop
    CPU
    i5 4690k
    Motherboard
    MSI Z97M gaming
    Memory
    8 GB
    Graphics Card(s)
    MSI GTX 770 OC
    Browser
    firefox
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 Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
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 Computer

System One

  • OS
    Windows 8.1 64 bit
    Computer type
    PC/Desktop
    CPU
    i5 4690k
    Motherboard
    MSI Z97M gaming
    Memory
    8 GB
    Graphics Card(s)
    MSI GTX 770 OC
    Browser
    firefox
Back
Top