Lose of commands when logged in as administrator.

C

Colin

Recently when i logged in via terminal services to a
windows 2000 server as administrator the server crashed.
Since then when logged in using the administrator account
either locally or remotely most of the commands are
unavailable.
Commands such as 'dir', 'cd', etc are okay
but 'ping', 'subst', 'net', etc are not. The message
returned is 'command is not recognised as an internal or
external command, operable program or batch file'. These
comands are also unavailable when trying to run them
directly via their icons in the system 32 folder.
This problem does not exist when logged in with other
accounts.
Could this be a problem with the registry?
 
G

G. Samuel Hays

Those DOS programs won't really run when you double click them.. (they'll
open a tiny window, and exit
very quickly - maybe before you can see it via terminal services).

However, open a cmd prompt and type path

I wonder if that is all that is wrong.


Best Regards,
Sam
 
G

Guest

I am having this problem on my laptop which runs windows xp os. I can't
execute commands like ping, ipconfig or nslookup. I am getting the same
error message.

so does anyone know how I can fix this?
 
M

Mark V

In said:
Recently when i logged in via terminal services to a
windows 2000 server as administrator the server crashed.
Since then when logged in using the administrator account
either locally or remotely most of the commands are
unavailable.
Commands such as 'dir', 'cd', etc are okay
but 'ping', 'subst', 'net', etc are not. The message
returned is 'command is not recognised as an internal or
external command, operable program or batch file'. These
comands are also unavailable when trying to run them
directly via their icons in the system 32 folder.
This problem does not exist when logged in with other
accounts.
Could this be a problem with the registry?

Such behavior often indicates a problem with the search PATH.

From a cmd prompt issue SET PATH and say what you see.
 
G

Guest

i see :

Path=D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program
Files\
Oracle\jre\1.1.8\bin;;c:\j2sdk1.4.0_01\bin;C:\JDK1.2.1\BIN;C:\Program
Files\Micr
osoft SQL Server\80\Tools\Binn\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
 
T

Torgeir Bakken (MVP)

i see :

Path=D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program
Files\Oracle\jre\1.1.8\bin;;c:\j2sdk1.4.0_01\bin;C:\JDK1.2.1\BIN;
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\

Hi

You are missing vital system folders in your path, add them like this:

Control Panel - System - Advanced -
Environment Variables

Find PATH under "System variables" and select Edit, add this line at the start:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;


Also, you should verify that the registry value for the path is still in
"REG_EXPAND_SZ" format and not "REG_SZ", see this link for more about this:

http://home.comcast.net/~stewartb/cmdprompt.html#6
 

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