Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't create new Autodiscover virtual directory..

681 views
Skip to first unread message

jim

unread,
May 10, 2007, 3:14:47 PM5/10/07
to
I was able to remove the autodiscover virtual directory using the
Remove-AutodiscoverVirtualDirectory cmdlet. When i tried to create a new
one however, the cmdlet hung for about a minute, and then i got the error
message below..

*START*
New-AutoDiscoverVirtualDirectory -websitename "Default Web
Site" -WindowsAuthentication $true -DigestAuthentication $true

New-AutodiscoverVirtualDirectory : An error occurred while creating the IIS
virtual directory 'IIS://ServerName.MyCompany.com/W3SVC/1/ROOT/Autodiscover'
on 'ServerName'.

At line:1 char:33

+ New-AutoDiscoverVirtualDirectory <<<< -websitename "Default Web
Site" -WindowsAuthentication $true -DigestAuthentication $true
*END*

After the error came up, i also noticed that the W3Svc had stopped and the
default web site wasn't started. I was able to start them again, however
there was no Autodiscover virtual directory.

I'm copying the code directly from the latest Ex2k7 help file.


jim

unread,
May 10, 2007, 3:30:25 PM5/10/07
to
Never mind. Turns out the W3Svc needs to be stopped before you run the
cmdlet. It tries to stop it as part of the process, but apparently it was
timing out before the service was shutdown cleanly, thus the error message.
I manually stopped W3 then went back to Powershell and voila!


"jim" <j...@nospam.com> wrote in message
news:uNdI7dzk...@TK2MSFTNGP02.phx.gbl...

the7th...@gmail.com

unread,
Feb 24, 2014, 3:38:19 PM2/24/14
to
I know this is old by ++1 on saving my bacon on this one. The service does need to be stopped for this to run properly.
0 new messages