Any "net" command causes a loop of "net use"'s

  • Thread starter Thread starter Mark Salter
  • Start date Start date
M

Mark Salter

A couple of our users are experiencing an odd problem. Whenever they run a
"net" command (e.g. net send, net use, net start) a "net use g:
\\<our_server_name>\<our_share_name>" command runs repeatedly in rapid
succession until issued with a CTRL+C.

This happens during logon scripts, and when the batch file, or any "net"
command is launched from within a command prompt, but does not happen if the
batch file is launched by double clicking it.

It also only happens for these particular users. If I logon, for example,
and try any of the above on the same PC it always works correctly.

Any ideas what may be causing it and how I fix it?

Regards
Mark Salter
 
Search the computer for instances of net.*. Is there only a net.exe in
system32? If so, make sure it's a valid MS file. If there are any other
net.* files, see if they should exist. Maybe some smartass made a file
named "net.com" or something that does:

for /l %%q in (1,0,1) do (echo %*)

or something like that.

Ray at work
 
Mark said:
A couple of our users are experiencing an odd problem. Whenever they run a
"net" command (e.g. net send, net use, net start) a "net use g:
\\<our_server_name>\<our_share_name>" command runs repeatedly in rapid
succession until issued with a CTRL+C.

This happens during logon scripts, and when the batch file, or any "net"
command is launched from within a command prompt, but does not happen if the
batch file is launched by double clicking it.

It also only happens for these particular users. If I logon, for example,
and try any of the above on the same PC it always works correctly.

Hi

Be sure that you haven't any batch files laying around with the name net.bat or
net.cmd...
 
There are no net.* files at all other than the net.exe that should be there
(system32\net.exe).

It works fine for most users, just not for the 2 of them on any Win2k or XP
machine (works ok on Win 9x). I've tried re-creating their local profiles to
no effect and for some reason the powers that be don't enable network
profiles anyway so I am still at a loss.
 
Hello Mark.

Mark said:
A couple of our users are experiencing an odd problem.
Whenever they run a "net" command (e.g. net send, net use, net start)
a "net use g: \\<our_server_name>\<our_share_name" command runs
repeatedly in rapid succession until issued with a CTRL+C.

This happens during logon scripts, and when the batch file, or any "net"
command is launched from within a command prompt, but does not
happen if the batch file is launched by double clicking it.

It also only happens for these particular users. If I logon, for example,
and try any of the above on the same PC it always works correctly.

Any ideas what may be causing it and how I fix it?

Check for net.bat or net.cmd files and delete or rename them.
 
So, you're saying that the problem is specific to USERS not MACHINES? What
are the contents of their login scripts then?

Ray at work
 
I must apologise - I'm a plonker. I don't know who put it there or why, and
I should have thought to look. There was a net.bat file in the home
directories of both users, and only those users. That would also account for
why it worked when you double clicked a batch file - it would "start in" the
containing folder and the home directory wouldn't be in the path!

Cheers all
 
Back
Top