Message at Boot up

J

JCO

Every time I boot up, I have a message, but its being opened with notepad.
I can't figure out why I'm getting this open notepad message. The top of
the line says:

Error: unrecognized or incomplete command line.

Then it goes on to explain the proper way of executing the Ipconfig command.
I've checked my Start Menu, HKLM-Run and HKCU-Run and don't see anything
that would execute this command or anything that would open this notepad.
My Autoexec.bat and Config.sys are both empty, so nothing is executing
there.

How can I figure out what is executing this on boot up?
 
J

JCO

I don't see how malware can be the issue.
I run Symantec System Works, Spybot, and Spysweeper.

I also cleaned the Registry. I don't have any issues showing up.
 
P

Poprivet

JCO said:
Every time I boot up, I have a message, but its being opened with
notepad. I can't figure out why I'm getting this open notepad
message. The top of the line says:

Error: unrecognized or incomplete command line.

Then it goes on to explain the proper way of executing the Ipconfig
command. I've checked my Start Menu, HKLM-Run and HKCU-Run and don't
see anything that would execute this command or anything that would
open this notepad. My Autoexec.bat and Config.sys are both empty, so
nothing is executing there.

How can I figure out what is executing this on boot up?

You either have malware (my feeling) or possibly an audit running somewhere
to do that. Try Adaware and see if it doesn't find something.

Filemon is a utility that might expose the culprit opening the notepad.
 
W

Wesley Vogel

My first thought is malware also.

You may have a .bat or .cmd file that runs at boot that contains an
incorrect ipconfig command.

Open a command prompt...
Start | Run | Type: cmd | Click OK |
In the command prompt, type or paste this command:

ipconfig /release_all

Hit your Enter key.

Example...
--------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>ipconfig /release_all

Error: unrecongnized or incomplete command line.

USAGE:
ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
ipconfig ... Show information.
ipconfig /all ... Show detailed information
ipconfig /renew ... renew all adapters
ipconfig /renew EL* ... renew any connection that has its name starting with EL
ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"
--------

ipconfig /release_all is not a proper command, hence the error.
ipconfig /release all would be a proper command.

Whatever script that may be running at startup may be piping errors to a
..txt file.

..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.

Startup scripts could be here...
%windir%\system32\GroupPolicy\Machine\Scripts\Startup
or
C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Startup

Also you might want to do an F3 in your registry for *.cmd or *.bat.

For example, my Cousin's HP machine had these two entries...
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Pin c:\hp\bin\cloaker.exe c:\hp\bin\pintostart.bat
Pin c:\hp\bin\cloaker.exe c:\hp\bin\pintostart.bat

Do a Search on your machine for *.cmd and *.bat

HOW TO: Search For Hidden Or System Files In Windows XP
http://support.microsoft.com/kb/302347
--------

To see your Startup Programs.
Open System Information...
Start | Run | Type: msinfo32 | Click OK |
Click the [+] next to Software Environment |
Click on Startup Programs

If you so desire, hit Ctrl + A to select all, then Ctrl + C to copy and then
paste into Notepad or whatever.

This is limited like msconfig.exe is limited, does not list all possible
startup locations.
---------
Get one or both of these.

StartMan is a GOOD Utility, I use it all the time, especially after
installing software. Everything you install wants to run at startup.
StartMan shows where something starts from. Check out the Help in StartMan
also! You can either have StartMan disable startups or just use it to find
where something is loading from.

StartMan v1.3.96
http://www.pt.lu/comnet/desc/startman.html

StartMan v1.3.96 Direct download
http://www.pt.lu/comnet/files/utils/startman10396.exe

Startup Control Panel is another pretty good application.

[[Startup Control Panel is a nifty control panel applet that allows you to
easily configure which programs run when your computer starts. It's simple
to use and, like all my programs, is very small and won't burden your
system. A valuable tool for system administrators!]]

Download the EXE Version and just extract the executable wherever you want.

Startup Control Panel
http://www.mlin.net/StartupCPL.shtml
--------

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
 
J

JCO

I'm very familiar with my computer (I'm a programmer). I've gone thru
everything in the Registry as you mentioned but nothing unusual. I'm very
familiar with the Ipconfig command and what it does too. I just don't see
anything unusual that would cause this.

I will look into the FileMon. Have seen this tool many years ago. Will
take another look.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top