up vote 0 down vote favorite
share [g+] share [fb]

Has anyone seen this error on an XP desktop machine before?

'net' is not recognized as an internal or external command, operable program or batch file.

It's being used in a 'net start iisadmin' script

link|improve this question

feedback

3 Answers

up vote 1 down vote accepted

Sounds like your 'path' environmental variable is getting stomped on somewhere. The fix is to do a direct call to it like has been suggested above.

link|improve this answer
feedback

Try looking for a file called net.exe in C:\WINDOWS\system32\

If it is there then try using an explicit path to the file in your script.

E.g.:

C:\WINDOWS\system32\net.exe start iisadmin

link|improve this answer
feedback

Yep, seen it more than once. Try using the full path and name to net.exe.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.