From: Bob on
I have accidentally deleted the SBS Web Applications Site from IIS. I
manually recreated the site, and recreated the various application folders.
The only application folder I cannot create is the Autodiscover application.

When I run the command:
New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web
Applications" -InternalUrl
"https://internalURL/Autodiscover/Autodiscover.xml" -BasicAuthentication
1 -WindowsAuthentication 1

I get the following error:
New-AutodiscoverVirtualDirectory : An error occurred while creating the IIS
virtual directory 'IIS://PLUTO.tcl.local/W3SVC/3/ROOT/Autodiscover' on
'SERVERNAME'.
At line:1 char:33
+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
Applications" -InternalUrl
"https://InternalURL/Autodiscover/Autodiscover.xml" -BasicAuthen
tication 1 -WindowsAuthentication 1

I have tried many various fixes already. The server has Exchange 2007 SP2
installed. I also wanted to try and remove the ClientAccessRole and
reinstall it. I ran SETUP /MODE:RECOVERSERVER and got the following
response:

Welcome to Microsoft Exchange Server 2007 Unattended Setup

Preparing Exchange Setup

The following server roles will be recovered
Hub Transport Role
Client Access Role
Mailbox Role
Management Tools

The following server roles are already installed: BridgeheadRole,
ClientAccessRole, MailboxRole, AdminToolsRole.

Exchange Server setup encountered an error.

I have run out of ideas....


From: Ace Fekay [MVP - Directory Services] on
On Mon, 19 Apr 2010 23:07:53 +0930, "Bob" <bob(a)funco.biz> wrote:

>I have accidentally deleted the SBS Web Applications Site from IIS. I
>manually recreated the site, and recreated the various application folders.
>The only application folder I cannot create is the Autodiscover application.
>
>When I run the command:
>New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web
>Applications" -InternalUrl
>"https://internalURL/Autodiscover/Autodiscover.xml" -BasicAuthentication
>1 -WindowsAuthentication 1
>
>I get the following error:
>New-AutodiscoverVirtualDirectory : An error occurred while creating the IIS
>virtual directory 'IIS://PLUTO.tcl.local/W3SVC/3/ROOT/Autodiscover' on
>'SERVERNAME'.
>At line:1 char:33
>+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
>Applications" -InternalUrl
>"https://InternalURL/Autodiscover/Autodiscover.xml" -BasicAuthen
>tication 1 -WindowsAuthentication 1
>
>I have tried many various fixes already. The server has Exchange 2007 SP2
>installed. I also wanted to try and remove the ClientAccessRole and
>reinstall it. I ran SETUP /MODE:RECOVERSERVER and got the following
>response:
>
>Welcome to Microsoft Exchange Server 2007 Unattended Setup
>
>Preparing Exchange Setup
>
>The following server roles will be recovered
> Hub Transport Role
> Client Access Role
> Mailbox Role
> Management Tools
>
> The following server roles are already installed: BridgeheadRole,
>ClientAccessRole, MailboxRole, AdminToolsRole.
>
>Exchange Server setup encountered an error.
>
>I have run out of ideas....
>

Accidentally deleted it??

Since you are also trying to recover the CAS role, that involves IIS
recovery, too, as you've already figured out.

Take a look at the following to recover the CAS II portion.

Reinstall the Client Access Role in Windows Small Business Server 2008
http://technet.microsoft.com/en-us/library/dd767439(WS.10).aspx

And for non-SBS 2008:

How to Back Up and Recover a Client Access Server
http://technet.microsoft.com/en-us/library/bb124359(EXCHG.80).aspx

Ace

This posting is provided "AS-IS" with no warranties or guarantees and confers no rights.

Please reply back to the newsgroup or forum for collaboration benefit among responding engineers, and to help others benefit from your resolution.

Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services

If you feel this is an urgent issue and require immediate assistance, please contact Microsoft PSS directly. Please check http://support.microsoft.com for regional support phone numbers.
From: Bob on
Thank you.
However, I cannot install the CAS Role because it is greyed out and there is
no option to uninstall it.

From the article:
"Note
If the Client Access Role is grayed out or already selected, the role is
installed and you do not need to reinstall it."


"Ace Fekay [MVP - Directory Services]" <aceman(a)mvps.RemoveThisPart.org>
wrote in message news:us2ps518t5s3jbc3vsp3t3i88o0l42usuf(a)4ax.com...
> On Mon, 19 Apr 2010 23:07:53 +0930, "Bob" <bob(a)funco.biz> wrote:
>
>>I have accidentally deleted the SBS Web Applications Site from IIS. I
>>manually recreated the site, and recreated the various application
>>folders.
>>The only application folder I cannot create is the Autodiscover
>>application.
>>
>>When I run the command:
>>New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web
>>Applications" -InternalUrl
>>"https://internalURL/Autodiscover/Autodiscover.xml" -BasicAuthentication
>>1 -WindowsAuthentication 1
>>
>>I get the following error:
>>New-AutodiscoverVirtualDirectory : An error occurred while creating the
>>IIS
>>virtual directory 'IIS://PLUTO.tcl.local/W3SVC/3/ROOT/Autodiscover' on
>>'SERVERNAME'.
>>At line:1 char:33
>>+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
>>Applications" -InternalUrl
>>"https://InternalURL/Autodiscover/Autodiscover.xml" -BasicAuthen
>>tication 1 -WindowsAuthentication 1
>>
>>I have tried many various fixes already. The server has Exchange 2007 SP2
>>installed. I also wanted to try and remove the ClientAccessRole and
>>reinstall it. I ran SETUP /MODE:RECOVERSERVER and got the following
>>response:
>>
>>Welcome to Microsoft Exchange Server 2007 Unattended Setup
>>
>>Preparing Exchange Setup
>>
>>The following server roles will be recovered
>> Hub Transport Role
>> Client Access Role
>> Mailbox Role
>> Management Tools
>>
>> The following server roles are already installed: BridgeheadRole,
>>ClientAccessRole, MailboxRole, AdminToolsRole.
>>
>>Exchange Server setup encountered an error.
>>
>>I have run out of ideas....
>>
>
> Accidentally deleted it??
>
> Since you are also trying to recover the CAS role, that involves IIS
> recovery, too, as you've already figured out.
>
> Take a look at the following to recover the CAS II portion.
>
> Reinstall the Client Access Role in Windows Small Business Server 2008
> http://technet.microsoft.com/en-us/library/dd767439(WS.10).aspx
>
> And for non-SBS 2008:
>
> How to Back Up and Recover a Client Access Server
> http://technet.microsoft.com/en-us/library/bb124359(EXCHG.80).aspx
>
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Please reply back to the newsgroup or forum for collaboration benefit
> among responding engineers, and to help others benefit from your
> resolution.
>
> Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE &
> MCSA 2003/2000, MCSA Messaging 2003
> Microsoft Certified Trainer
> Microsoft MVP - Directory Services
>
> If you feel this is an urgent issue and require immediate assistance,
> please contact Microsoft PSS directly. Please check
> http://support.microsoft.com for regional support phone numbers.

From: Ace Fekay [MVP - Directory Services] on

That's good to hear. What appears you *need* to do, as you previously
pointed out, is to recover the IIS portion of the CAS. Did you follow
the portion of the article copying and pasting the Power Shell command
thatwill recreate the IIS portion?

Ace


On Tue, 20 Apr 2010 18:24:49 +0930, "Bob" <bob(a)funco.biz> wrote:

>Thank you.
>However, I cannot install the CAS Role because it is greyed out and there is
>no option to uninstall it.
>
>From the article:
>"Note
>If the Client Access Role is grayed out or already selected, the role is
>installed and you do not need to reinstall it."
>
>
>"Ace Fekay [MVP - Directory Services]" <aceman(a)mvps.RemoveThisPart.org>
>wrote in message news:us2ps518t5s3jbc3vsp3t3i88o0l42usuf(a)4ax.com...
>> On Mon, 19 Apr 2010 23:07:53 +0930, "Bob" <bob(a)funco.biz> wrote:
>>
>>>I have accidentally deleted the SBS Web Applications Site from IIS. I
>>>manually recreated the site, and recreated the various application
>>>folders.
>>>The only application folder I cannot create is the Autodiscover
>>>application.
>>>
>>>When I run the command:
>>>New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web
>>>Applications" -InternalUrl
>>>"https://internalURL/Autodiscover/Autodiscover.xml" -BasicAuthentication
>>>1 -WindowsAuthentication 1
>>>
>>>I get the following error:
>>>New-AutodiscoverVirtualDirectory : An error occurred while creating the
>>>IIS
>>>virtual directory 'IIS://PLUTO.tcl.local/W3SVC/3/ROOT/Autodiscover' on
>>>'SERVERNAME'.
>>>At line:1 char:33
>>>+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
>>>Applications" -InternalUrl
>>>"https://InternalURL/Autodiscover/Autodiscover.xml" -BasicAuthen
>>>tication 1 -WindowsAuthentication 1
>>>
>>>I have tried many various fixes already. The server has Exchange 2007 SP2
>>>installed. I also wanted to try and remove the ClientAccessRole and
>>>reinstall it. I ran SETUP /MODE:RECOVERSERVER and got the following
>>>response:
>>>
>>>Welcome to Microsoft Exchange Server 2007 Unattended Setup
>>>
>>>Preparing Exchange Setup
>>>
>>>The following server roles will be recovered
>>> Hub Transport Role
>>> Client Access Role
>>> Mailbox Role
>>> Management Tools
>>>
>>> The following server roles are already installed: BridgeheadRole,
>>>ClientAccessRole, MailboxRole, AdminToolsRole.
>>>
>>>Exchange Server setup encountered an error.
>>>
>>>I have run out of ideas....
>>>
>>
>> Accidentally deleted it??
>>
>> Since you are also trying to recover the CAS role, that involves IIS
>> recovery, too, as you've already figured out.
>>
>> Take a look at the following to recover the CAS II portion.
>>
>> Reinstall the Client Access Role in Windows Small Business Server 2008
>> http://technet.microsoft.com/en-us/library/dd767439(WS.10).aspx
>>
>> And for non-SBS 2008:
>>
>> How to Back Up and Recover a Client Access Server
>> http://technet.microsoft.com/en-us/library/bb124359(EXCHG.80).aspx
>>
>> Ace
>>
>> This posting is provided "AS-IS" with no warranties or guarantees and
>> confers no rights.
>>
>> Please reply back to the newsgroup or forum for collaboration benefit
>> among responding engineers, and to help others benefit from your
>> resolution.
>>
>> Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE &
>> MCSA 2003/2000, MCSA Messaging 2003
>> Microsoft Certified Trainer
>> Microsoft MVP - Directory Services
>>
>> If you feel this is an urgent issue and require immediate assistance,
>> please contact Microsoft PSS directly. Please check
>> http://support.microsoft.com for regional support phone numbers.
From: Bob on
Unfortunately, lots of errors. Almost everything was red!
Here is a snippet of some errors.

Confirm
Are you sure you want to perform this action?
Remove certificate with thumbprint DF2F88E1348C3473D148FF3EBC4347534D8C7B3B?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y
Remove-OwaVirtualDirectory : The operation could not be performed because
object 'Owa (Default Web Site)' could not be found on domain controller
'SERVER.domain.local'.
At C:\Windows\System32\sbscasreinstall.ps1:10 char:27
+ Remove-OWAVirtualDirectory <<<< -Identity "Owa (Default Web
Site)" -Confirm:$false
Remove-OwaVirtualDirectory : The operation could not be performed because
object 'Exadmin (Default Web Site)' could not be found on domain controller
'SERVER.domain.local'.
At C:\Windows\System32\sbscasreinstall.ps1:11 char:27
+ Remove-OWAVirtualDirectory <<<< -Identity "Exadmin (Default Web
Site)" -Confirm:$false
..
..
.. and more

Interestingly, Get-OWAVirtualDirectory shows the following

Name Server OwaVersion
---- ------ ----------
owa (SBS Web Applications) SERVER Exchange2007
Exchweb (SBS Web Applic... SERVER Exchange2003or2000
Exadmin (SBS Web Applic... SERVER Exchange2003or2000
Exchange (SBS Web Appli... SERVER Exchange2003or2000
Public (SBS Web Applica... SERVER Exchange2003or2000

The key problem is trying to recreate the AutoDiscoveryVirtualDirectory. I
just cannot seem to get this one created.

New-AutodiscoverVirtualDirectory : An error occurred while creating the IIS
virtual directory 'IIS://SERVER.domain.local/W3SVC/3/ROOT/Autodiscover' on
'SERVER'.
At C:\Windows\System32\sbscasreinstall.ps1:34 char:33
+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
Applications" -InternalUrl
"https://Sites/Autodiscover/Autodiscover.xml" -BasicAuthentication
1 -WindowsAuthentication 1

I checked, and it looks like everything else is back to where it was before
I ran the script.
OWA and REMOTE are still working. Autodiscovery is still not there.

Thanks for your help. Happy for more suggestions.


"Ace Fekay [MVP - Directory Services]" <aceman(a)mvps.RemoveThisPart.org>
wrote in message news:8nfrs5pd1e5r269m77pb8kkbcjfgov9f43(a)4ax.com...
>
> That's good to hear. What appears you *need* to do, as you previously
> pointed out, is to recover the IIS portion of the CAS. Did you follow
> the portion of the article copying and pasting the Power Shell command
> thatwill recreate the IIS portion?
>
> Ace
>
>
> On Tue, 20 Apr 2010 18:24:49 +0930, "Bob" <bob(a)funco.biz> wrote:
>
>>Thank you.
>>However, I cannot install the CAS Role because it is greyed out and there
>>is
>>no option to uninstall it.
>>
>>From the article:
>>"Note
>>If the Client Access Role is grayed out or already selected, the role is
>>installed and you do not need to reinstall it."
>>
>>
>>"Ace Fekay [MVP - Directory Services]" <aceman(a)mvps.RemoveThisPart.org>
>>wrote in message news:us2ps518t5s3jbc3vsp3t3i88o0l42usuf(a)4ax.com...
>>> On Mon, 19 Apr 2010 23:07:53 +0930, "Bob" <bob(a)funco.biz> wrote:
>>>
>>>>I have accidentally deleted the SBS Web Applications Site from IIS. I
>>>>manually recreated the site, and recreated the various application
>>>>folders.
>>>>The only application folder I cannot create is the Autodiscover
>>>>application.
>>>>
>>>>When I run the command:
>>>>New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web
>>>>Applications" -InternalUrl
>>>>"https://internalURL/Autodiscover/Autodiscover.xml" -BasicAuthentication
>>>>1 -WindowsAuthentication 1
>>>>
>>>>I get the following error:
>>>>New-AutodiscoverVirtualDirectory : An error occurred while creating the
>>>>IIS
>>>>virtual directory 'IIS://PLUTO.tcl.local/W3SVC/3/ROOT/Autodiscover' on
>>>>'SERVERNAME'.
>>>>At line:1 char:33
>>>>+ New-AutodiscoverVirtualDirectory <<<< -WebsiteName "SBS Web
>>>>Applications" -InternalUrl
>>>>"https://InternalURL/Autodiscover/Autodiscover.xml" -BasicAuthen
>>>>tication 1 -WindowsAuthentication 1
>>>>
>>>>I have tried many various fixes already. The server has Exchange 2007
>>>>SP2
>>>>installed. I also wanted to try and remove the ClientAccessRole and
>>>>reinstall it. I ran SETUP /MODE:RECOVERSERVER and got the following
>>>>response:
>>>>
>>>>Welcome to Microsoft Exchange Server 2007 Unattended Setup
>>>>
>>>>Preparing Exchange Setup
>>>>
>>>>The following server roles will be recovered
>>>> Hub Transport Role
>>>> Client Access Role
>>>> Mailbox Role
>>>> Management Tools
>>>>
>>>> The following server roles are already installed: BridgeheadRole,
>>>>ClientAccessRole, MailboxRole, AdminToolsRole.
>>>>
>>>>Exchange Server setup encountered an error.
>>>>
>>>>I have run out of ideas....
>>>>
>>>
>>> Accidentally deleted it??
>>>
>>> Since you are also trying to recover the CAS role, that involves IIS
>>> recovery, too, as you've already figured out.
>>>
>>> Take a look at the following to recover the CAS II portion.
>>>
>>> Reinstall the Client Access Role in Windows Small Business Server 2008
>>> http://technet.microsoft.com/en-us/library/dd767439(WS.10).aspx
>>>
>>> And for non-SBS 2008:
>>>
>>> How to Back Up and Recover a Client Access Server
>>> http://technet.microsoft.com/en-us/library/bb124359(EXCHG.80).aspx
>>>
>>> Ace
>>>
>>> This posting is provided "AS-IS" with no warranties or guarantees and
>>> confers no rights.
>>>
>>> Please reply back to the newsgroup or forum for collaboration benefit
>>> among responding engineers, and to help others benefit from your
>>> resolution.
>>>
>>> Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE &
>>> MCSA 2003/2000, MCSA Messaging 2003
>>> Microsoft Certified Trainer
>>> Microsoft MVP - Directory Services
>>>
>>> If you feel this is an urgent issue and require immediate assistance,
>>> please contact Microsoft PSS directly. Please check
>>> http://support.microsoft.com for regional support phone numbers.