Friday, June 22, 2007

IIS Delete Virtual Directory

Have you ever got the error The alias "LM/W3SVC/1/Root/YOUR_ALIAS" already exists. Please choose a different alias when you try to create a new virtual directory under IIS ? You cannot delete the existing alias if its not in the IIS Admin snap-in but there is a way around it. Open a Dos prompt under C:\Intetpub\Adminscirpts folder and execute the following script.

cscript adsutil.vbs DELETE W3SVC\1\ROOT\YOUR_ALIAS

No comments: