Philippe VINOT
asked on
Exchange 2010 Accidentally deleted the Default Web Site
I wanted to delete a SharePoint site but the procedure delete all the "Default Web Site" where all the Exchange 2010 virtual directory where mapped.
Is there a simple way to recover the all IIS Exchange configuration ? Please Help !!!
Thank you.
Is there a simple way to recover the all IIS Exchange configuration ? Please Help !!!
Thank you.
Try the steps in this link: http://technet.microsoft.com/en-us/library/ff629372(v=exchg.141).aspx
ASKER
Unfortunately I can't go any more in EMC : I get an "Initialization failed" error
And Exchange Management Shell tels that it can't connect to the server
Regards,
And Exchange Management Shell tels that it can't connect to the server
Regards,
Ouch. OK next step would be to try re-installing the CAS role on the server.
ASKER
OK, I will try this ....
ASKER
I've another error when trying to remove the CAS Role :
In the "Unified Messaging Role" part :
"The operation couldn't be performed because object 'MYEXCHSRV' couldn't be found on 'MYDCSRV.mydomain.com'
and then "Setup was unable to uninstall the server role"
I've checked, and "MYEXCHSRV" object IS in the list of Computers on the DC and I have no problems when logging on MYEXCHSRV with domain accounts.
In the "Unified Messaging Role" part :
"The operation couldn't be performed because object 'MYEXCHSRV' couldn't be found on 'MYDCSRV.mydomain.com'
and then "Setup was unable to uninstall the server role"
I've checked, and "MYEXCHSRV" object IS in the list of Computers on the DC and I have no problems when logging on MYEXCHSRV with domain accounts.
How are you uninstalling the CAS role? Is it through the Program and Features Control Panel applet?
I have had this issue in the past for a client
If you have a backup restore IIS from backup and that will be the best and easiest option..
If you have a backup restore IIS from backup and that will be the best and easiest option..
PS: Exchange relies on IIS for its communication
Even Exchange console and Shell all work and revolve around the IIS and its authentication.
Even Exchange console and Shell all work and revolve around the IIS and its authentication.
ASKER
Yes I'm unsinstalling the CAS role through Program and Features.
Unfortunately, I have no backup of this server.
I'm now planing to configure a new server on the domain with Exchange 2010 and to move the mail box from the old server to the new one. Do you think that this will work ?
I can't remember if we can initiate the mailbox move from the destination server ?
And I'm not sure that the new server will be able to connect to the old one ....
Unfortunately, I have no backup of this server.
I'm now planing to configure a new server on the domain with Exchange 2010 and to move the mail box from the old server to the new one. Do you think that this will work ?
I can't remember if we can initiate the mailbox move from the destination server ?
And I'm not sure that the new server will be able to connect to the old one ....
Yes you can initiate a mailbox move from the new server, however I'm not 100% confident that this will work. I still think you should try and remove the CAS role from the current server as opposed to building a new one. I'll do some research on the error message and get back to you.
Oh dear.
There is an easy way to fix this.
Start Powershell on the server (normal powershell).
Then in the PowerShell window enter the following:
Add-PSSnapin Microsoft.Exchange.Managem ent.PowerS hell.E2010
Once the commandlets have been loaded, recreate the PowerShell virtual directory:
New-PowerShellVirtualDirec tory -Name Powershell -RequireSSL:$False
If it throws an error, then remove it first
Remove-PowerShellVirtualDi rectory "Powershell (Default Web Site)"
Then recreate it.
That should let you start EMC. Once in EMC you can use the console to recreate the virtual directories. If it doesn't work, then you will have to go back to EMS and remove and recreate the virtual directories. The remove step removes them from both Exchange and IIS.
Simon.
There is an easy way to fix this.
Start Powershell on the server (normal powershell).
Then in the PowerShell window enter the following:
Add-PSSnapin Microsoft.Exchange.Managem
Once the commandlets have been loaded, recreate the PowerShell virtual directory:
New-PowerShellVirtualDirec
If it throws an error, then remove it first
Remove-PowerShellVirtualDi
Then recreate it.
That should let you start EMC. Once in EMC you can use the console to recreate the virtual directories. If it doesn't work, then you will have to go back to EMS and remove and recreate the virtual directories. The remove step removes them from both Exchange and IIS.
Simon.
ASKER
When I try to create the virtual directory I get the error :
New-PowerShellVirtualDirec tory : Web object 'IIS://MYEXCHSRV.mydomain. com/W3S VC/1/ROOT' can't be found.
Any ideas ?
New-PowerShellVirtualDirec
Any ideas ?
Did you delete the old one first?
Simon.
Simon.
ASKER
Yes
Remove-PowerShellVirtualDi rectory "Powershell (Default Web Site)"
and then
New-PowerShellVirtualDirec tory -Name Powershell -RequireSSL:$False
Remove-PowerShellVirtualDi
and then
New-PowerShellVirtualDirec
Lets step back a bit.
Have you recreated the Default Web Site?
If so, does it have the ID of 1?
In an elevated command prompt, change to the following directory:
C:\Windows\System32\inetsr v\config
Then type notepad applicationHost.config
Find the Default Web Site and change the ID from 123456789 (or whatever ID it is) to 1.
Save the file.
Then run IISRESET and restart the IIS management console. The web site should be shown with the correct ID. You can then follow my previous instructions.
Simon.
Have you recreated the Default Web Site?
If so, does it have the ID of 1?
In an elevated command prompt, change to the following directory:
C:\Windows\System32\inetsr
Then type notepad applicationHost.config
Find the Default Web Site and change the ID from 123456789 (or whatever ID it is) to 1.
Save the file.
Then run IISRESET and restart the IIS management console. The web site should be shown with the correct ID. You can then follow my previous instructions.
Simon.
ASKER
I can't find the Default Web Site in applicationHost.config
It's the problem : the default web site has been deleted and I don't know the right way to recreate it.
It's the problem : the default web site has been deleted and I don't know the right way to recreate it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To complete the question for anyone else reading this question - to recreate the Default Web site, just create a new web site with the name "Default Web Site". Then renumber it if required as per my instructions above.
Simon.
Simon.
ASKER
The solutions provided by the answers didn't apply to my situation