Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

According to this page, I should be able to view and delete Virtual Directories from IIS Manager:

I can confirm that VDirs exist by running this from the command prompt:

c:\Windows\System32\inetsrv>appcmd list vdir

But from IIS manager, I only see "View Virtual Directories" in the "Actions Pane" when I click on "Default Web Site" or a specific "Virtual Application". But when I click "View Virtual Directories" nothing shows up in the listing.

So how can I see and delete Virtual Directories from the IIS 7 Manager, when I know they are they by using the APPCMD command line tool?


Neal Walters

share|improve this question
up vote 1 down vote accepted

I agree with Matt's answer.. here's the example

C:\Windows\System32\inetsrv>appcmd.exe list vdir
VDIR "Default Web Site/" (physicalPath:%SystemDrive%\inetpub\wwwroot)
VDIR "SharePoint Central Administration v3/" (physicalPath:C:\inetpub\wwwroot\wss\VirtualDirect
VDIR "SharePoint Central Administration v3/_vti_bin" (physicalPath:C:\Program Files\Common File
s\Microsoft Shared\Web Server Extensions\12\isapi)

You will be able to delete

VDIR "SharePoint Central Administration v3/_vti_bin"

as it's a vdir in SharePoint Central Administration v3 but you won't be able to delete

VDIR "SharePoint Central Administration v3/"

as that's the parent/root vdir.

share|improve this answer

With the appcmd line you listed above, you are viewing vdirs for all sites within your server. As you have discovered, IIS Manager does not have this capability - it can only view vdirs for a specific site or application.

One reason you might see vdirs listed in appcmd, but none in IIS Manager is that appcmd considers the top level site a vdir. If you have a site called with no virtual directories, you will still see 1 virtual directory in appcmd for This will not show up in IIS Manager. If you have with a vdir under it called sample, you will see 2 vdirs listed in appcmd, but only 1 (sample) listed in IIS Manager.

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.