I need help with an annoying problem at shutdown

  • Thread starter Thread starter Frank K.
  • Start date Start date
F

Frank K.

Every time I shutdown the computer I get a notice that "Notepad.exe failed
to initialize because Windows is shutting down". The shutdown then proceeds
as normal.

I'm less than a week into a clean reinstall of XP Pro.

My daughter gets the same message on her computer. I am running XP Pro. My
daughter has XP Home. I searched the Knowledge base and groups.google and
came up with nothing.

Any help will be appreciated.

Frank
 
UPDATE your antivirus software and run a full system scan.

UPDATE whatever anti-spyware applications that you have and run a full
system scan with each one.

You might want to start in Safe Mode to run your antivirus and anti-spyware
software.

Running a full system antivirus scan or anti-spyware scan in Safe Mode can
be a good idea. Some viruses and other malware like to conceal themselves
in areas Windows protects while using them. Safe mode can prevent those
applications access and therefore unprotect the viruses or other malware
allowing for easier removal.

''In safe mode, you have access to only basic files and drivers
(mouse, monitor, keyboard, mass storage, base video, default system
services), just the minimum device drivers required to start Windows.''

Because of that some malware does not load in Safe Mode and is easier to get
rid of.

How to start Windows in Safe Mode Windows XP
http://www.bleepingcomputer.com/forums/index.php?showtutorial=61#winxo

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Thanks, Wes. I ran the scans in Safe and Normal Modes today and there were
no problems noted. Looking for other ideas.

Frank
 
Hi Frank,

Notepad.exe is normally the Windows text editor, maybe you use it. I use it
all of the time.

Notepad.exe can also be a trojan, like here for example...
http://www.pchell.com/virus/qaz.shtml

Notepad.exe normally exists in these folders:
C:\WINDOWS The Notepad.exe here is included for backwards compatibility for
old Windows 95 programs.

C:\WINDOWS\system32 The Notepad.exe located here is the one that normally
gets used. I.e. Start\Programs\Accessories\Notepad. Though either one is
legitimate and it doesn't really matter which one is used.

And a copy of Notepad.exe here...
C:\WINDOWS\system32\dllcache
or here...
C:\WINDOWS\ServicePackFiles\i386
used for backup purposes for Windows File Protection. In case one of the
others gets messed up some how. Usually you have one folder or the other.

If you type: notepad into Start | Run and click OK an Untitled - Notepad
should open. In fact, I am typing this message in an Untitled - Notepad
right this minute. I will copy this text and paste it into an Outlook
Express message later. ;-)

Normally notepad.exe should *not* be running when you shut down your machine
unless you started it on purpose.

If a legitimate notepad.exe is running (there can be more than one copy
running), you can see Untitled - Notepad listed in the Task Manager under
the Applications tab. To open Task Manager hit Ctrl + Shift + Esc, click on
the Applications tab. Locate Untitled - Notepad, right click it and select
Go To Process. Task Manager should open at the Processes tab with
notepad.exe highlighted.

If a legitimate copy of notepad.exe is running that was started from a *.txt
file, the title in Task Manager under the Applications tab will be listed by
the Name_of_the_file.txt and will be listed as notepad.exe under the
Processes tab.

Notepad.exe can also be running as Name_of_the_file.txt or .log or .ini or
any other of a number of legitimate file extensions.

Doing a Google search for "failed to initialize because Windows is shutting
down" and reading through *many* posts indicates some kind of malware.

Before you shutdown you need to use Task Manager to determine if any copies
of notepad.exe are running. If any are, did you start them? You can use
Task Manager to End Process or End Task.

Open Task Manager....
1. Ctrl + Shift + Esc or Ctrl + Alt + Del.
2. Click the Processes tab.
3. Right click notepad.exe and select End Process.
4. This message will popup:

WARNING: Terminating a process can cause undesired
results including loss of data and system instability. The
process will not be given the chance to save its state or
data before it is terminated. Are you sure you want to
terminate the process?

5. Click on YES and close the Task Manager.

Open Task Manager....
1. Ctrl + Shift + Esc or Ctrl + Alt + Del.
2. Click the Applications tab.
3. Right click Untitled - Notepad and select End Task.
4. This message may popup:

The text in the Untitled file has changed.
Do you want to save the changes?

5. Do whatever and then close the Task Manager.

There may be a legitimate reason that notepad.exe is running that you did
not start on purpose. Here is one example of that. But I would think that
you would notice this when you started your machine.
http://support.microsoft.com/kb/330132

Or if you have this problem...
Clicking the "Open With" or "Choose Program..." option always opens the file
with Notepad
http://windowsxp.mvps.org/openas.htm

I did not include those last two items for confusion, just to show that
there are other legitimate reasons for notepad to open, even if they open
notepad.exe because of some other problem.

You're going to have to play Sherlock Holmes and investigate:
* Why Notepad.exe is open when you shutdown?
* Is it a legitimate Notepad.exe?
* If not legitimate, what is it really?
* If it is legitimate, why is it running in the first place?

Hopefully the information here will help with that. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Hi Wes,

I thank you for going into such detail to help with this annoyance.

Yes, I do use notepad almost every day.

I went through your list of items and found nothing that would I thought
would cause my problem. I did a search of every "Notepad" entry in the
registry. There was nothing that drew my attention. I also did a search on
C:\ for Notepad and came up with four files. All of them are the same size
and date.

I started Notepad several times and saved a couple of test files. Then I
searched the registry again to see if there were any different entries.
There were none.

Do you know which files are called or events that take place when you shut
down? Maybe someplace in there is a call for a .txt or other file that is
trying to start Notepad.

Thanks again.

Frank
 
Hi Frank,
Do you know which files are called or events that take place when you shut
down? Maybe someplace in there is a call for a .txt or other file that is
trying to start Notepad.

I sincerely doubt it. Unless you have something by Norton/Symantec. Their
programs seem to stick their tentacles into all kinds of Windows operations
that they have no business in.

I just had a thought. Unless there is a shutdown script(s).

Any shutdown script would probably be in...
%windir%\system32\GroupPolicy\Machine\Scripts\Shutdown
or
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Shutdown

..bat or .cmd files are also called scripts. .cmd files are Windows NT
Command Script files. .cmd files work the same way as .bat files, but do
not work on non-NT systems, like Windows 98, ME, etc. .vbs, .js, etc. files
are also called scripts.

Script from XP's Glossary...
A type of program consisting of a set of instructions to an application or
tool program. A script usually expresses instructions by using the
application's or tool's rules and syntax, combined with simple control
structures such as loops and if/then expressions. "Batch program" is often
used interchangeably with "script" in the Windows environment.

You have XP Pro, so open the Group Policy snap-in.
Start | Run | Type: gpedit.msc | Click OK |
Navigate to >
Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)

Any shutdown script gets added here in the registry...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0\0
and here...
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\
Windows\System\Scripts\Shutdown\0\0

To see the Help file for: To assign computer shutdown scripts,
Paste the following line into Start | Run and click OK...

hh SPconcepts.chm::/gptext_assigncomputershutdownscripts.htm

Without getting any 3rd party programs you can use System Information to:
See the Running Tasks, shows what's in the Task Manager
See the Loaded Modules.

You can copy from the right hand pane. Click in the right hand pane, hit
Ctrl + A to Select All, hit Ctrl + C to Copy, then paste into Notepad or
whatever. Or click on one item to Select it, hit Ctrl + C to Copy, then
paste into Notepad or whatever.

To open System Information...
Start | Run | Type: msinfo32 | Click OK |
Click the [+] next to Software Environment to expand the list.
Click on Loaded Modules.
Click on Running Tasks.

[[Loaded Modules is located in the Software Environment category in System
Information. It displays information about programs that are running on your
system, including their associated DLLs. You can use Loaded Modules to
verify the version of a DLL on your system, in addition to its file date and
path.]]

[[Running Tasks is located in the Software Environment category in System
Information. It displays information about processes that are currently
running on your system, including the process name, path, and version and
the priority that the system assigns to each process.

If there is a problem with a running task, such as a program not responding,
use Task Manager to locate and troubleshoot the problem. You can use Task
Manager to close a task, if necessary.]]

Or maybe you want to try Process Explorer.

Process Explorer
Find out what files, registry keys and other objects processes have open,
which DLLs they have loaded, and more. This uniquely powerful utility will
even show you who owns each process.
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx

Microsoft TechNet: Windows Sysinternals
http://www.microsoft.com/technet/sysinternals/default.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Wesley Vogel said:
Hi Frank,


I sincerely doubt it. Unless you have something by Norton/Symantec.
Their
programs seem to stick their tentacles into all kinds of Windows
operations
that they have no business in.

I just had a thought. Unless there is a shutdown script(s).

Any shutdown script would probably be in...
%windir%\system32\GroupPolicy\Machine\Scripts\Shutdown
or
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Shutdown

No such folder
.bat or .cmd files are also called scripts. .cmd files are Windows NT
Command Script files. .cmd files work the same way as .bat files, but do
not work on non-NT systems, like Windows 98, ME, etc. .vbs, .js, etc.
files
are also called scripts.

I only have one .bat file that has more to do with validation than anything
else. I didn't look for any other files.
Script from XP's Glossary...
A type of program consisting of a set of instructions to an application or
tool program. A script usually expresses instructions by using the
application's or tool's rules and syntax, combined with simple control
structures such as loops and if/then expressions. "Batch program" is often
used interchangeably with "script" in the Windows environment.

You have XP Pro, so open the Group Policy snap-in.
Start | Run | Type: gpedit.msc | Click OK |
Navigate to >
Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)

Nothing suspicious there.
Any shutdown script gets added here in the registry...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0\0
and here...
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\
Windows\System\Scripts\Shutdown\0\0

I did a search of the registry for "shutdown". No hits.
To see the Help file for: To assign computer shutdown scripts,
Paste the following line into Start | Run and click OK...

hh SPconcepts.chm::/gptext_assigncomputershutdownscripts.htm

No scripts.
Without getting any 3rd party programs you can use System Information to:
See the Running Tasks, shows what's in the Task Manager
See the Loaded Modules.

You can copy from the right hand pane. Click in the right hand pane, hit
Ctrl + A to Select All, hit Ctrl + C to Copy, then paste into Notepad or
whatever. Or click on one item to Select it, hit Ctrl + C to Copy, then
paste into Notepad or whatever.

To open System Information...
Start | Run | Type: msinfo32 | Click OK |
Click the [+] next to Software Environment to expand the list.
Click on Loaded Modules.
Click on Running Tasks.

[[Loaded Modules is located in the Software Environment category in System
Information. It displays information about programs that are running on
your
system, including their associated DLLs. You can use Loaded Modules to
verify the version of a DLL on your system, in addition to its file date
and
path.]]

[[Running Tasks is located in the Software Environment category in System
Information. It displays information about processes that are currently
running on your system, including the process name, path, and version and
the priority that the system assigns to each process.

If there is a problem with a running task, such as a program not
responding,
use Task Manager to locate and troubleshoot the problem. You can use Task
Manager to close a task, if necessary.]]

Nothing suspicious.
Or maybe you want to try Process Explorer.

Process Explorer
Find out what files, registry keys and other objects processes have open,
which DLLs they have loaded, and more. This uniquely powerful utility will
even show you who owns each process.
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx

Microsoft TechNet: Windows Sysinternals
http://www.microsoft.com/technet/sysinternals/default.mspx

Didn't explore.
--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User


Wes,

Wow! You have really given some indepth replies to my "annoyance".

I went through most of your possible problem areas and made notes following
each of them above.

I think it's time to accept and live with the problem.

Thanks for the time you have spent to help. You MS-MVPs are a great asset to
those of us with computer problems. I salute you all.

Thanks a lot.

Frank
 
Beats me, Frank.
I did a search of the registry for "shutdown". No hits.

C:\WINDOWS\system32\shutdown.exe.

I use to a shortcut to %windir%\System32\shutdown.exe -s -t 00 to shutdown
my machine instead of using Turn Off Computer on the Start menu. This has
nothing to do with anything, but your statement reminded me of it.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Frank K. said:
Wesley Vogel said:
Hi Frank,


I sincerely doubt it. Unless you have something by Norton/Symantec.
Their
programs seem to stick their tentacles into all kinds of Windows
operations
that they have no business in.

I just had a thought. Unless there is a shutdown script(s).

Any shutdown script would probably be in...
%windir%\system32\GroupPolicy\Machine\Scripts\Shutdown
or
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Shutdown

No such folder
.bat or .cmd files are also called scripts. .cmd files are Windows NT
Command Script files. .cmd files work the same way as .bat files, but do
not work on non-NT systems, like Windows 98, ME, etc. .vbs, .js, etc.
files
are also called scripts.

I only have one .bat file that has more to do with validation than
anything else. I didn't look for any other files.
Script from XP's Glossary...
A type of program consisting of a set of instructions to an application
or tool program. A script usually expresses instructions by using the
application's or tool's rules and syntax, combined with simple control
structures such as loops and if/then expressions. "Batch program" is
often used interchangeably with "script" in the Windows environment.

You have XP Pro, so open the Group Policy snap-in.
Start | Run | Type: gpedit.msc | Click OK |
Navigate to >
Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)

Nothing suspicious there.
Any shutdown script gets added here in the registry...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0\0
and here...
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\
Windows\System\Scripts\Shutdown\0\0

I did a search of the registry for "shutdown". No hits.
To see the Help file for: To assign computer shutdown scripts,
Paste the following line into Start | Run and click OK...

hh SPconcepts.chm::/gptext_assigncomputershutdownscripts.htm

No scripts.
Without getting any 3rd party programs you can use System Information to:
See the Running Tasks, shows what's in the Task Manager
See the Loaded Modules.

You can copy from the right hand pane. Click in the right hand pane, hit
Ctrl + A to Select All, hit Ctrl + C to Copy, then paste into Notepad or
whatever. Or click on one item to Select it, hit Ctrl + C to Copy, then
paste into Notepad or whatever.

To open System Information...
Start | Run | Type: msinfo32 | Click OK |
Click the [+] next to Software Environment to expand the list.
Click on Loaded Modules.
Click on Running Tasks.

[[Loaded Modules is located in the Software Environment category in
System Information. It displays information about programs that are
running on your
system, including their associated DLLs. You can use Loaded Modules to
verify the version of a DLL on your system, in addition to its file date
and
path.]]

[[Running Tasks is located in the Software Environment category in System
Information. It displays information about processes that are currently
running on your system, including the process name, path, and version and
the priority that the system assigns to each process.

If there is a problem with a running task, such as a program not
responding,
use Task Manager to locate and troubleshoot the problem. You can use Task
Manager to close a task, if necessary.]]

Nothing suspicious.
Or maybe you want to try Process Explorer.

Process Explorer
Find out what files, registry keys and other objects processes have open,
which DLLs they have loaded, and more. This uniquely powerful utility
will even show you who owns each process.
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx

Microsoft TechNet: Windows Sysinternals
http://www.microsoft.com/technet/sysinternals/default.mspx

Didn't explore.
--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User


Wes,

Wow! You have really given some indepth replies to my "annoyance".

I went through most of your possible problem areas and made notes
following each of them above.

I think it's time to accept and live with the problem.

Thanks for the time you have spent to help. You MS-MVPs are a great asset
to those of us with computer problems. I salute you all.

Thanks a lot.

Frank
 
Back
Top