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


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.


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


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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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