View Full Version : Lose of commands when logged in as administrator.


Colin
02-25-2004, 11:15 AM
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. Samuel Hays
02-25-2004, 08:50 PM
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

"Colin" <anonymous@discussions.microsoft.com> wrote in message
news:12d501c3fb90$a3c624c0$a301280a@phx.gbl...
> 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. Samuel Hays
02-25-2004, 08:50 PM
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

"Colin" <anonymous@discussions.microsoft.com> wrote in message
news:12d501c3fb90$a3c624c0$a301280a@phx.gbl...
> 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?

02-28-2004, 07:17 PM
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?

"Colin" <anonymous@discussions.microsoft.com> wrote in message
news:12d501c3fb90$a3c624c0$a301280a@phx.gbl...
> 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?
>

02-28-2004, 07:17 PM
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?

"Colin" <anonymous@discussions.microsoft.com> wrote in message
news:12d501c3fb90$a3c624c0$a301280a@phx.gbl...
> 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?
>

Mark V
02-28-2004, 07:55 PM
In microsoft.public.win2000.cmdprompt.admin Colin wrote:

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

Mark V
02-28-2004, 07:55 PM
In microsoft.public.win2000.cmdprompt.admin Colin wrote:

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

02-28-2004, 09:26 PM
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



"Mark V" <notvalid@invalid.nul> wrote in message
news:Xns949D97BF7F9BFz9zzaQ2btw@207.46.248.16...
> In microsoft.public.win2000.cmdprompt.admin Colin wrote:
>
> > 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.
>

02-28-2004, 09:26 PM
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



"Mark V" <notvalid@invalid.nul> wrote in message
news:Xns949D97BF7F9BFz9zzaQ2btw@207.46.248.16...
> In microsoft.public.win2000.cmdprompt.admin Colin wrote:
>
> > 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.
>

Torgeir Bakken (MVP)
02-28-2004, 09:36 PM
hmcconell@tampabay.rr.com wrote:

> 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

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter

Torgeir Bakken (MVP)
02-28-2004, 09:36 PM
hmcconell@tampabay.rr.com wrote:

> 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

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter