Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 3 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.

share|improve this answer

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.


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

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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