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

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
 
R

Ray at

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
 
T

Torgeir Bakken (MVP)

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

Mark Salter

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

Wolfgang Kais

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

Ray at

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
 
M

Mark Salter

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
 
R

Ray at

We are also plonkers for not thinking to suggest searching %homepath%. :]

Ray at work
 

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

Similar Threads

Net Use command? 5
Net Use Command 0
how to disable NET SEND COMMAND from win2k workstation 3
the "net computer" command 4
Net Use 5
NET USE error 1
net use help 1
net use 2

Top