Cannot run net use command

M

Mike

When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be causing
this?
 
P

Pegasus [MVP]

Mike said:
When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be causing
this?

Do this:
1. Click Start / Run
2. Type the three letters cmd
3. Click OK
(This is called the Command Prompt)
4. Type these commands and report the result:
net use {Enter}
c:\Windows\System32\net use {Enter}
c:\Windows\System32\net.exe use {Enter}
 
G

Guest

Example:

net use H: \\ServerName\ShareName
net use H: \\ServerName\ShareName /User:administrator password
 
M

Mike

Results are inline...

Do this:
1. Click Start / Run
2. Type the three letters  cmd
3. Click OK
    (This is called the Command Prompt)

I am aware...
4. Type these commands and report the result:
net use {Enter}

'net' is not recognized as an internal or external command, operable
program or batch file.
c:\Windows\System32\net use {Enter}

'c:\Windows\System32\net' is not recognized as an internal or external
command, operable program or batch file.
c:\Windows\System32\net.exe  use {Enter}

'c:\Windows\System32\net.exe' is not recognized as an internal or
external command, operable program or batch file.
 
M

Mike

FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?
 
L

Lem

Mike said:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?

The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it
doesn't bother parsing the parameters.

I would have expected net.exe to be protected by Windows File
Protection, but it appears that this file is missing from your system.
To be sure, however, take a look in C:\Windows\System32. There should
be net.exe (41.5 kb) and net1.exe (122.kb). I'm not certain what the
differences are between net and net1; net1 lists the same parameters as net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
 
M

Mike

Neither one of them are there.
I am running the system file checker now, to see if that restores them.
Could a virus or malware have deleted or hidden them?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Lem said:
Mike said:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?

The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it doesn't
bother parsing the parameters.

I would have expected net.exe to be protected by Windows File Protection,
but it appears that this file is missing from your system. To be sure,
however, take a look in C:\Windows\System32. There should be net.exe
(41.5 kb) and net1.exe (122.kb). I'm not certain what the differences are
between net and net1; net1 lists the same parameters as net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

--
Lem

Apollo 11 - 40 years ago:
http://www.nasa.gov/mission_pages/apollo/40th/index.html
 
M

Mike

Ran sfc /scannow & net1 & a net help file came back.
Can I extract it from the i386 folder?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike said:
Neither one of them are there.
I am running the system file checker now, to see if that restores them.
Could a virus or malware have deleted or hidden them?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Lem said:
Mike said:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?


Results are inline...


When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be causing
this?
Do this:
1. Click Start / Run
2. Type the three letters cmd
3. Click OK
(This is called the Command Prompt)
I am aware...

4. Type these commands and report the result:
net use {Enter}
'net' is not recognized as an internal or external command, operable
program or batch file.

c:\Windows\System32\net use {Enter}
'c:\Windows\System32\net' is not recognized as an internal or external
command, operable program or batch file.

c:\Windows\System32\net.exe use {Enter}
'c:\Windows\System32\net.exe' is not recognized as an internal or
external command, operable program or batch file.

The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it doesn't
bother parsing the parameters.

I would have expected net.exe to be protected by Windows File Protection,
but it appears that this file is missing from your system. To be sure,
however, take a look in C:\Windows\System32. There should be net.exe
(41.5 kb) and net1.exe (122.kb). I'm not certain what the differences
are between net and net1; net1 lists the same parameters as net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

--
Lem

Apollo 11 - 40 years ago:
http://www.nasa.gov/mission_pages/apollo/40th/index.html
 
P

Pegasus [MVP]

A few replies to your various observations:
- While it might look pedantic for me to guide you to a Command
Prompt, you'd be surprised if you knew how many posters need
extremely detailed instructions on how to create one. I learnt this
through bitter experience.
- When you type the command
net use
then "net" is the command and "use" is a parameter. The Command
Process will complain about the command only if it cannot find a
matching executable. It won't say anything about the parameter.
- The error message you see means most likeley that the file
c:\windows\system32\net.exe
is no longer present. This is highly suspicious. You can retrieve it
from a number of places, e.g. by copying it from one of these folders
back to c:\windows\system32:
C:\WINDOWS\$NtServicePackUninstall$
C:\WINDOWS\ServicePackFiles\i386
C:\WINDOWS\system32\dllcache


Mike said:
Ran sfc /scannow & net1 & a net help file came back.
Can I extract it from the i386 folder?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike said:
Neither one of them are there.
I am running the system file checker now, to see if that restores them.
Could a virus or malware have deleted or hidden them?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Lem said:
Mike wrote:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?


Results are inline...


When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be causing
this?
Do this:
1. Click Start / Run
2. Type the three letters cmd
3. Click OK
(This is called the Command Prompt)
I am aware...

4. Type these commands and report the result:
net use {Enter}
'net' is not recognized as an internal or external command, operable
program or batch file.

c:\Windows\System32\net use {Enter}
'c:\Windows\System32\net' is not recognized as an internal or external
command, operable program or batch file.

c:\Windows\System32\net.exe use {Enter}
'c:\Windows\System32\net.exe' is not recognized as an internal or
external command, operable program or batch file.


The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it
doesn't bother parsing the parameters.

I would have expected net.exe to be protected by Windows File
Protection, but it appears that this file is missing from your system.
To be sure, however, take a look in C:\Windows\System32. There should
be net.exe (41.5 kb) and net1.exe (122.kb). I'm not certain what the
differences are between net and net1; net1 lists the same parameters as
net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

--
Lem

Apollo 11 - 40 years ago:
http://www.nasa.gov/mission_pages/apollo/40th/index.html
 
M

Mike

I hear you & sorry about that!
Now what is stranger is that none of those locations you're telling me to
look in exist on this laptop I'm dealing with!
I have folder options set to show hidden file, but I am not seeing any of
those folders.
I've done a search on the whole C drive & nothing came back, either.
I tried system file checker, but that didn't restore them, either.
What would my next option be - booting from the CD & try a repair install?


Pegasus said:
A few replies to your various observations:
- While it might look pedantic for me to guide you to a Command
Prompt, you'd be surprised if you knew how many posters need
extremely detailed instructions on how to create one. I learnt this
through bitter experience.
- When you type the command
net use
then "net" is the command and "use" is a parameter. The Command
Process will complain about the command only if it cannot find a
matching executable. It won't say anything about the parameter.
- The error message you see means most likeley that the file
c:\windows\system32\net.exe
is no longer present. This is highly suspicious. You can retrieve it
from a number of places, e.g. by copying it from one of these folders
back to c:\windows\system32:
C:\WINDOWS\$NtServicePackUninstall$
C:\WINDOWS\ServicePackFiles\i386
C:\WINDOWS\system32\dllcache


Mike said:
Ran sfc /scannow & net1 & a net help file came back.
Can I extract it from the i386 folder?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike said:
Neither one of them are there.
I am running the system file checker now, to see if that restores them.
Could a virus or malware have deleted or hidden them?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike wrote:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?


Results are inline...


When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be
causing
this?
Do this:
1. Click Start / Run
2. Type the three letters cmd
3. Click OK
(This is called the Command Prompt)
I am aware...

4. Type these commands and report the result:
net use {Enter}
'net' is not recognized as an internal or external command, operable
program or batch file.

c:\Windows\System32\net use {Enter}
'c:\Windows\System32\net' is not recognized as an internal or
external
command, operable program or batch file.

c:\Windows\System32\net.exe use {Enter}
'c:\Windows\System32\net.exe' is not recognized as an internal or
external command, operable program or batch file.


The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it
doesn't bother parsing the parameters.

I would have expected net.exe to be protected by Windows File
Protection, but it appears that this file is missing from your system.
To be sure, however, take a look in C:\Windows\System32. There should
be net.exe (41.5 kb) and net1.exe (122.kb). I'm not certain what the
differences are between net and net1; net1 lists the same parameters as
net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

--
Lem

Apollo 11 - 40 years ago:
http://www.nasa.gov/mission_pages/apollo/40th/index.html
 
M

Mike

Oddly enough, none of those locations show up in windows.
From a command prompt I was able to copy net.exe from dllcache & into the
system32 folder & all seems to be well, right now.
Why aren't I seeing those in windows?
I have hidden folders set to show...


Pegasus said:
A few replies to your various observations:
- While it might look pedantic for me to guide you to a Command
Prompt, you'd be surprised if you knew how many posters need
extremely detailed instructions on how to create one. I learnt this
through bitter experience.
- When you type the command
net use
then "net" is the command and "use" is a parameter. The Command
Process will complain about the command only if it cannot find a
matching executable. It won't say anything about the parameter.
- The error message you see means most likeley that the file
c:\windows\system32\net.exe
is no longer present. This is highly suspicious. You can retrieve it
from a number of places, e.g. by copying it from one of these folders
back to c:\windows\system32:
C:\WINDOWS\$NtServicePackUninstall$
C:\WINDOWS\ServicePackFiles\i386
C:\WINDOWS\system32\dllcache


Mike said:
Ran sfc /scannow & net1 & a net help file came back.
Can I extract it from the i386 folder?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike said:
Neither one of them are there.
I am running the system file checker now, to see if that restores them.
Could a virus or malware have deleted or hidden them?

--
Mr. Simpson, there are thousands of people like you with no discernable
talent.
Yeah, they're called Congress.
Mike wrote:
FYI, I am aware that from my replies it looks like I did not enter the
whole commands that you listed, but I assure you I did.
Why does it only seem to see the 'net' & not the 'use'?


Results are inline...


When trying to run the 'net use' command I get a message like 'the
command 'net' is not recognized as an internal or external command.
The path is correct in Environment Variables - what could be
causing
this?
Do this:
1. Click Start / Run
2. Type the three letters cmd
3. Click OK
(This is called the Command Prompt)
I am aware...

4. Type these commands and report the result:
net use {Enter}
'net' is not recognized as an internal or external command, operable
program or batch file.

c:\Windows\System32\net use {Enter}
'c:\Windows\System32\net' is not recognized as an internal or
external
command, operable program or batch file.

c:\Windows\System32\net.exe use {Enter}
'c:\Windows\System32\net.exe' is not recognized as an internal or
external command, operable program or batch file.


The error message doesn't mention "use" because that is a parameter for
the net command. Once Windows thinks that there is no command, it
doesn't bother parsing the parameters.

I would have expected net.exe to be protected by Windows File
Protection, but it appears that this file is missing from your system.
To be sure, however, take a look in C:\Windows\System32. There should
be net.exe (41.5 kb) and net1.exe (122.kb). I'm not certain what the
differences are between net and net1; net1 lists the same parameters as
net:

C:\Documents and Settings\Lem>net
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\Documents and Settings\Lem>net1
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

--
Lem

Apollo 11 - 40 years ago:
http://www.nasa.gov/mission_pages/apollo/40th/index.html
 
P

Pegasus [MVP]

Mike said:
Oddly enough, none of those locations show up in windows.
From a command prompt I was able to copy net.exe from dllcache & into the
system32 folder & all seems to be well, right now.
Why aren't I seeing those in windows?
I have hidden folders set to show...

On your machine you probably set the file/folder attribute to "Hide
protected operating system files".
 

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