Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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

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

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.

E.g.:

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

share|improve this answer

Your Answer

 
discard

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.