Kbase P1183: OS-COMMAND with Windows 2000 / NT Terminal Server 2
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/11/2002 |
|
Status: Unverified
FACT(s) (Environment):
Windows NT 4.0 Terminal Server Edition
SYMPTOM(s):
Attempting to use the NET USE from OS-COMMAND
Windows Error: The name specified is not recognized as an internal or external command, operable program or batch file.
CAUSE:
The issue with the net use command is due to the fact that the %systemroot% directory for Windows NT Terminal Server is WTSRV and not Windows NT.
Windows NT TS goes to %systemroot%\system32 to find the (net.exe) executable, but the file is located only in winnt\system32.
FIX:
In order to to map a drive, you must enter the complete path to the net.exe:
OS-COMMAND silent "c:\winnt\system32\net use L: \\remote_machine\pp".