How to fix "Program Manager" preventing shut down

Discussion in 'Windows 10' started by Phoenix, Mar 23, 2016.

  1. Phoenix

    Phoenix MDL Expert

    May 30, 2014
    1,087
    458
    60
    Even on a clean install of Windows 10 latest build with nothing installed not even drivers, when I reboot, I always see this message for a few seconds "Program Manager is preventing Windows from....."

    I can either wait for a few seconds for the reboot to happen or manually click restart now

    how can I stop this nuisance? I want an instant restart / shutdown

    I have Fast Startup turned off and hibernation file disabled ( powercfg -h off )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Phoenix

    Phoenix MDL Expert

    May 30, 2014
    1,087
    458
    60
    #2 Phoenix, Mar 23, 2016
    Last edited: Mar 24, 2016
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dmex

    dmex MDL Junior Member

    Apr 20, 2011
    90
    95
    0
    "Program Manager" is the window class name used by Windows Explorer.

    It's a good idea to not rush into system optimization right after a fresh install, there are a lot of processes doing their first-time initialization tasks such as running the Store application updater, Windows update installer, Indexing service, ShellExperienceHost ("Distributed Link Tracking" by the start-menu), CLR native image generation and about 10 other processes either installing updates or setting up, some of them can take a few hours to finish (they run with very low priority or when the machine is idle).

    The reason why you're seeing that message is because the shutdown/reboot dialog is waiting for those other processes to shut down but the only one with any visible windows is Explorer (that dialog only shows the names of visible windows and not actual processes) and because those other processes (without any visible windows) are taking longer than 3 seconds, it trips the dialog and ends up only showing the "Program Manager" window from the Explorer process.

    All that does is force the termination of those other processes before they have enough time to shut down properly and might cause corruption. You should probably change it back, once those initial setup tasks have completed (and your new installation is more than a few hours old) it won't be an issue. ;)
     
  4. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,368
    516
    60
    Try block the internet for it
     
  5. endbase

    endbase MDL Guru

    Aug 12, 2012
    3,691
    1,020
    120
    At my reboot or shutdown Origin holds up the process I can't block that I need that for playing Need For Speed 2016 :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,368
    516
    60
    i mean explorer.exe it might not block correctly
    block everything with wfc and just allow the applications or games that need net
     
  7. Phoenix

    Phoenix MDL Expert

    May 30, 2014
    1,087
    458
    60
    nevermind, I spoke too soon, that reg entry to Auto End Tasks did not get rid of the program manager is preventing Windows from Shutting Down.

    I don't remember if I saw this with the first bulid of Windows 10 10240
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. TairikuOkami

    TairikuOkami MDL Addicted

    Mar 15, 2014
    596
    393
    30
    Have you added other entries as well, esecialy the one related to killing the service?

    reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d 1 /f
    reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f
    reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "10000" /f
    reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "10000" /f
     
  9. WaltC

    WaltC MDL Addicted

    Mar 8, 2014
    518
    123
    30
    Bear in mind that just because you see that text displayed, that's no reason to think the delay actually has anything to do with shutting down running programs...;) It could easily be a common Windows shutdown problem--you might wish to Bing/Google "Windows 10 won't shut down" or something similar and start reading up on it. On build 14291 I see a shutdown/reboot delay related to closing running applications, but the duration is only 1-2 seconds at most. You can try shutting your programs down one at a time from the systray or the task manager to see if there's one you're running which takes a while to shut down, etc.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...