Thursday, March 16, 2017

Windows takes long time or ages to shut down

Windows takes long time or ages to shut down


If you have a brand new 3 - 4 months old computer which runs a lot faster and turn on very fast within few seconds but extremely slow to shut down that would be the most frustrating situation because every time you want to restart the computer after making any changes to it or lets say you have made some changes or updated any software which requires you to restart the computer thats when it becomes pain in the ass.

Here in this article we will be learning the reason why windows takes long time or ages to shut down and how to fix the slow shut down.



Issue:
Slow shut down.
Windows takes a long time to shut down.
Windows does not shut down forever.
Windows is extremely slow to shut down.
A circle in blue background keeps moving around during shut down.


Reason of slow shut down and troubleshooting

Shutting down windows is not as simple as turning the computer or any other electronic device off.when you give command to shut down the changes to the Operating System must be saved,System processes must end, data must be saved,unwanted information must be removed from memory and all the network connection must end.


Usually, this process takes just a few seconds, but the complex series of steps that take place behind the scenes can sometimes trip over itself and slow the shut down process.The result is a system that never actually shuts down, or takes an extremely long time to shut down.It really irritates when you have to go to some party and your machine keeps you intact due to its lazy shut down.Here are the reasons why your Windows 7 or Windows 8/8.1 PC might not shut down, and how to fix it. 


1. Page File Problems causing very slow shut down


Page file is the Virtual memory of your computer or you can say an extension for your memory stick-RAM that is allocated on Hard Drive of your computer.Windows OS swap pages of memory to disk when they are not used. On a running system, this pagefile is opened exclusively by the operating system, and it is well protected. However, systems that are configured to allow booting to other operating systems might have to make sure that the system pagefile is wiped clean when this system shuts down. This ensures that sensitive information from process memory that might go into the pagefile is not available to an unauthorized user who manages to directly access the pagefile.This virtual memory is maintained in a file called pagefile.sys located in root drive normally C: drive.

When this option is enabled for security reason, it causes the system pagefile to be cleared upon clean shutdown. This takes considerable time of the Operating System to flush-out the pagefile, thus causing the slow shut down.

Disable the clearing Pagefile at shut down option to increase the shut down speed. 

Open regedit.exe and go to the following directory:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management


Slow Shut Down Cause
Slow Shut Down Cause


Now, Find the registry entry named ClearPageFileAtShutdown in the right pane. If it is set to 1 it is enabled, and may delay the shut down process. Right-click it, select Modify, and change the value to 0.This will most of the time fix the slow shut down problem.


2. Tweak registry to reduce timeout to kill services or Apps to fix slow shut down.


When you give command to shuts down, Windows attempts to properly close all running processes. If a service doesn?t close immediately, Windows waits for a few seconds, until it prompts the user that the service is not responding to the shutdown request. The amount of this waiting time is defined by registry keys and you can reduce it.

Please follow the steps outlined in this article, it should in no way harm your system otherwise improper editing the of registry can cause system to crash.Here are few registry hacks that you need to do.

1. Navigate to the following registry key

HKEY_CURRENT_USERControl PanelDesktop

On the right, find and double-click the string > WaitToKillAppTimeout.

If this entry does not exist, you can create it. Right-click into the folder and click > New > String Value, and name it > WaitToKillAppTimeout and change its value to 1000..

if you see an entry called > AutoEndTasks, set its value data to 1.You can create one if it is not there.
Slow Shut Down Caused by Registry
Slow Shut Down Caused by Registry


Similarly change the value for HungAppTimeout registry key to 1000.

The second part of this tip changes the same settings, this time for all users on the system.

2. Navigate to HKEY_USERS.DEFAULTControl PanelDesktop

Highlight the WaitToKillAppTimeout value.
Set it to 1000 (the default should be 20000).
Now highlight the HungAppTimeout value.
Set it to 1000 also.
Highlight the  AutoEndTasks value.
set it to 1.Windows will now be able to close hung applications without user input during the shutdown process.



In the third tip, we will alter a second registry setting to decrease the amount of time Windows will wait before shutting down active services after receiving a shut down command.this would help a lot to fix slow shut down problem.

3. Navigate to  HKEY_LOCAL_MACHINESystemCurrentControlSetControl
Highlight the value  WaitToKillServiceTimeout
Change this value to 1000.
Slow shut down caused by registry
Slow shut down caused by registry



this registry key plays vital role in fixing slow shut down problem

3. Windows Automatic Update Service glitch causes slow shutdown

Sometimes automatic update error also causes slow shutdown.Click on Start - run - type CMD and command prompt will appear right click on CMD.exe on top and select run as administrator. .
After you are in command prompt type the following commands.


1) net stop wuauserv
2) cd /d %windir%SoftwareDistribution
3) rd /s DataStore
4) net start wuauserv


4. Network problems.


Your computer might have slow shut down issue because of another computer on a home network accessing the hard drive on this one, or the use of P2P file sharing like torrents or Limewire, or similar. We dont recommend using such file sharers because of the piracy aspect and risk of malware infected files.

Disconnect any share drive or network drive located on your computer before shutting down and properly stop the services of P2P file sharing programs like torrents or Limewire or similar from task manager.You should also uncheck these program from the startup items list in control panel>Adminitrative Tools > System Configuration.



5. Loopholes or know issue in Windows Operating System causing slow shut down

Your windows could also have slow shut down issue because of known glitch which needs to be taken care of by installing hotfix released by microsoft.
Microsoft keeps releasing the updates and patches for all the windows operating system to cover up glitches or loopholes in its operating system and if you have missed out on any patch which might be directly or indirectly associated with the cause of Slow shut down then you might think of downloading the related hotfix.Below are four important hotfixes.

i.] Hotfix 1 - Download

Hotfixed is used when "There is a delay when you shut down, restart, or log off a computer that is running Windows 7 or Windows Server 2008 R2" and if you have the following symptoms.

SYMPTOMS

When you try to restart, logoff or shut down your Windows 7 or Windows Server 2008 R2.
the logoff process stops for about six seconds. Additionally, you receive the following message:

1 program still needs to close:

(Waiting for) Task Host Window

Cause: This problem occurs because the TaskHost.exe process stops handling messages during system shutdown, during system restart, and during system logoff causing slow shut down.

Important: 
A hotfix is intended to correct a specific problem.
Apply the hotfix only to systems that are experiencing the specific problem.
Installing the incorrect hotfix can cause damage to your system.
Hotfixes are included in subsequent service packs that are safer to install through Microsoft Update

ii ] Hotfix 2 for Windows 2000, Windows Server 2003, Windows XP- Download

A service to help with slow shut down and unreconciled profile problems.

You may be having profile unload problems if you experience slow logoff or slow shut down (with Saving Settings for most of the time while logging off). UPHClean is a service that once and for all gets rid of problems with user profile not unloading.

The User Profile Hive Cleanup service(UPHClean) helps to ensure user sessions are completely terminated when a user logs off which causes slow shut down. System processes and applications occasionally maintain connections to registry keys in the user profile after a user logs off. In those cases the user session is prevented from completely ending. This can result in problems when using Roaming User Profiles in a server environment.


iii] Hotfix 3 for Windows XP- Download

SYMPTOMS

The shut down procedure on certain hardware configurations can take up to 15 minutes to complete. 


For example, the Toshiba Satellite 5200 laptop computer that is equipped with a universal serial bus (USB) 1.1 mouse can demonstrate this problem.

CAUSE


This problem occurs because of an issue with the Microsoft Windows XP audio service which causes slow shut down.

RESOLUTION

The audio service has been updated to correct this problem.To resolve this problem, you could also obtain the latest service pack for Windows XP.


iv ] Hotfix for Windows 7- Computer could not shut down or sleep -Download

Sysmtoms

You have a computer that is running Windows 7 RTM. When the system is under heavy load, you may encounter one or more of the following problems:
The hotkey on your keyboard does not work. For example, you press the hotkey to control the brightness of your computer screen. However, the level of brightness does not change.
Windows 7 stops responding when you shut down the computer or put the computer into Sleep.
This problem frequently occurs on computers that have multiple processors or that have a processor with multiple cores.


Note: The issue is fixed in Windows 7 Service Pack 1

6. Software or driver problems causing slow shutdown

Sometimes when you try to shut down the computer it shows the message

Available link for download