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

The title pretty much says it. I need a command line equivalent to pressing the Remove button on the Application Name setting when looking at the properties of a Virtual Directory in IIS6 on a Windows Server 2003. I need this for a batch file. If there is an alternative for a VBScript that would work also.

I know with

Cscript.exe adsutil.vbs SET Path Value

I can alter settings but cannot find a list of what settings I can alter.

share|improve this question
up vote 3 down vote accepted

Using the remove button actually removes the application from the virtual directory, the equivalent in adsutil is to use the command:


See this page for a full list of commands to use with adsutil.

share|improve this answer
Perfect, what I was looking for. Thanks! – Strop Jul 22 '09 at 14:54

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.