1) The most likely reason for a delayed shutdown is an application [i]hanging[/i]. The most likely culprit is your antivirus application. If you are running antivirus software, disable it and see if this resolves the problem.
Check the Task Manager (Ctrl-Shft-Esc) and look for memory usurpation from your running processes. A hanging application should be a conspicuous resource hog.
2) Windows Services need time to park themselves before the PC will shut down. Disable unnecessary services. Scott Lowe posted an excellent piece June'05 on TR:
http://tinyurl.com/yohler
Obviously you will have to use this information selectively, because you may legitimately need some of these services to accomplish your computing tasks.
3) Don't clear the paging file at shutdown. For security reasons, you can have XP clear your paging file ([i]pagefile.sys[/i]) of its contents whenever you shut down. Your paging file is used to store temporary files and data, but when your system shuts down, information stays in the file.
Some people prefer to have the paging file cleared at shutdown because sensitive information, such as encrypted passwords, sometimes ends up in the file. However, clearing the paging file can slow shutdown times significantly, so if extreme security isn't a high priority, you might not want to clear it. To shut down XP without clearing your paging file, perform the following registry edit:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Control\Session Manager\Memory Management
Change the value of ClearPageFileAtShutdown to 0. Whenever you turn off XP from now on, the paging file won't be cleared, and you should be able to shut down more quickly.
Credit for the Registry edit goes to Preston Gralla, [i]Windows XP Hacks[/i] (O'Reilly Publishing, 2005), Hack #3, p. 13
Rick/Portland, OR