powercfg and ps keeping my computer awake??

Page 2 of 3 FirstFirst 123 LastLast
  1.    10 Sep 2016 #11

    DavidE said: View Post
    You need to add overrides for the requests.
    Open an elevated command prompt and try these commands for requestsoverride :

    powercfg -requestsoverride PROCESS nw.exe EXECUTION

    powercfg -requestsoverride DRIVER "Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0221&SUBSYS_103C18E5&REV_1000\4&e851e2c&0&0001" SYSTEM

    Sorry David didn't see your message till now. Thank you for illustrating how to use the command. I will that a go, and oh btw do I need to reboot after issuing?
      My ComputerSystem Spec

  2. DavidE's Avatar
    Posts : 357
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       10 Sep 2016 #12

    I don't think you need to reboot for these to take effect.
      My ComputerSystem Spec

  3.    11 Sep 2016 #13

    I'm curious if you have gotten any results from the powercfg commands you got from DavidE. That looks pretty promising. I've been working on finding stuff in task manager, and the best I've been able to come up with is to use the Active Tasks pane to guide you into currently active tasks to see if you can find mention of nw.exe. This still requires one-at-a-time investigation into those tasks to see if the action includes "run a program" with ".../nw.exe" as the target. I have 32 active task folders on my Win10 PC and you probably have a number more than 20 and less than 100 if your system is typical. Then, any given task folder can have anywhere from 1 to 15 scheduled tasks inside, each of which has to be searched. The total search space is pretty big and requires too much manual effort. So I'm still looking around for some way to attack this more programmatically. I'm going to reach out to some PowerShell experts tomorrow when the world goes back to work and see what I can find out. Stay tuned, but please let me know how the other path is going, too.

    Best wishes,
      My ComputersSystem Spec

  4. DavidE's Avatar
    Posts : 357
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       11 Sep 2016 #14

    Hello Ed,

    Try NirSoft TaskSchedulerView, it's a nice little free portable program for working with Scheduled Tasks.
    Start it with Run as administrator, and it lists more tasks.

    Task Scheduler Viewer for Windows 10/7/8/Vista
      My ComputerSystem Spec

  5.    11 Sep 2016 #15

    Great recommendation, DavidE. I have used many of the other NirSoft utilities and have a current version of NirLauncher on my systems (which probably includes TaskSchedulerView). I'll give it a try...wow! It takes a while to load up and has already scanned 150 tasks ... still going ... done! It has a Find command (in the Edit menu) and I just used it to locate the tasks that called a specific exe file on my system. David: I think you've found the OP's dream utility!

    Click image for larger version. 

Name:	tsv-find.jpg 
Views:	18 
Size:	76.5 KB 
ID:	100958

    Gusgf: You can grab TaskSchedulerView from NirSoft.com (Link). Once you let it load up the database, you can then search for your string "nw.exe" and jump right into the task where it shows up. Please let us know what you find!

    Thanks again DavidE. Kudos to you for figuring this out!

      My ComputersSystem Spec

  6. DavidE's Avatar
    Posts : 357
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       11 Sep 2016 #16

    You're welcome, and thank you :)
      My ComputerSystem Spec

  7.    12 Sep 2016 #17

    Just to say thank you to Ed and David for your help with this so far. I haven't actually had a chance to test the effectiveness of the 'powercfg' command David supplied but will do over the next few days. I'm also going to download the TaskschedulerView utility.
    I will report back and let you guys know how it's going.
    Thanks again guys appreciate your time :)
      My ComputerSystem Spec

  8.    14 Sep 2016 #18

    For both DavidE and myself, you're very welcome. These are fascinating issues that help us to learn more about how Windows really works. It's already helped me find and kill a scheduled task that ran a batch file that kept popping up on my desktop, but which disappeared too quickly for me to tell what it was all about. Searching TaskSchedulerView for ".bat" zeroed me right in, and let me "fix" the batch file so it doesn't run anymore. We all come out ahead!
      My ComputersSystem Spec

  9. DavidE's Avatar
    Posts : 357
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       14 Sep 2016 #19

    Ditto !

    Another thing you can do with TaskschedulerView is click on a column heading to sort the display by that column.
    i.e. - You can sort by the Last Run column and refresh the list (View/Refresh or F5).
    Then you can see what just ran without doing an edit/find.
    Multiple Clicks on the column heading toggles the sort as ascending/descending.

    Another thing i do is add Sysinternals Process Explorer to auto start programs.
    You can add Start Time to the display List and sort by that column.
    Then you can see all the processes running and and what order they start in.
    Give it a try and let the PC be idle for 15-30 minutes on startup, so delayed tasks and maintenance tasks run.
    You will easily see what processes start/stop in the list (red/green items in list).
    I find this real helpful when i'm working on someone's PC that is slow "loading/displaying" Windows desktop or has performance issues.

    I'm amazed at the difference i personally see in startup stuff for Win 10 vs. what i see in W7 or W8.1.
    Many folks say W10 is more efficient/less overhead, but that's not the way i see it.
      My ComputerSystem Spec

  10.    19 Sep 2016 #20

    Sorry I've not updated this thread sooner but it's been a bit hit and miss. Sometimes my computer goes to sleep other times it doesn't so the only thing I can do is continually run
    powercfg -requestsoverride
    every time it fails to sleep and disable the offending process or driver. So far this is my list....
    C:\WINDOWS\system32>powercfg -requestsoverride
    nw.exe EXECUTION
    chrome.exe EXECUTION
    High Definition Audio Device SYSTEM
    Realtek High Definition Audio SYSTEM
    Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0221&SUBSYS_103C18E5&REV_1000\4&e851e2c&0&0001 SYSTEM
    I hope eventually to have a 100% success rate. Don't know why Windows 10 doesn't override automatically these processes when the user requests the computer to sleep after a certain elapsed time with no exceptions. Didn't have this problem on previous version of Win10.
      My ComputerSystem Spec

Page 2 of 3 FirstFirst 123 LastLast

Related Threads
Freeze on awake in General Support
Hey, Sometimes when my PC comes back up from hibernation (hybrid sleep enabled) it freezes so stiff that even the reset button stops working. The screen updates once so the clock widget on my taskbar shows the current time for a second....
powercfg problem in General Support
I have a powershell script that calls powercfg -lastwake. Every now and then it will not return any data. The code below Checks the return value $wake for null. If null it calls powercfg again. The other day I checked the system and the $try...
Hello Windows 10 Community, I'm currently in the process of finalizing my Windows 10 install by configuring all the little details I typically do, but for some reason I cannot get my computer to sleep after the specified time in the Control...
Windows 10 can't stay awake in Performance & Maintenance
I just upgraded to Windows 10. The jury is still out if I like it better than Windows 7, but I think so. One big problem is nothing I've done will adjust the power setting to keep my laptop from going to sleep. I notice that there is not an option...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:35.
Find Us