Connect To Internet Wizard (CTIW) fails with error 'Windows SBS did not properly configure your e-mail' on Windows Small Business Server 2011

Symptoms

On Windows Small Business Server (SBS) 2011, the Connect To Internet Wizard (CTIW) may fail to complete successfully with the below error:

Windows SBS did not properly configure your e-mail. To correct this, re-run this wizard.



On examining the C:\Program Files\Windows Small Business Server\Logs\CTIW.log, you would see something similar:

[12808] 110125.160243.6674: Messaging: Executed management shell command: get-exchangeserver
[12808] 110125.160243.9870: Messaging: MessagingTaskException: Failure during monad command execution: get-exchangeserver  -- Error# (800001)
[12808] 110125.160243.9870: Messaging: Inner exception: The term 'Get-ExchangeServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
[12808] 110125.160243.9880: Messaging: Stack Trace:
[12808] 110125.160244.0115: Messaging:    at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.Invoke()
   at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingRunspace.StaticExecute(Command[] commands)
[12808] 110125.160244.0409: CoreNet: Exception Microsoft.WindowsServerSolutions.TaskManagement.Admin.TaskExecutionException:

[12808] 110125.160244.0546: Exception:
---------------------------------------
An exception of type 'Type: Microsoft.WindowsServerSolutions.TaskManagement.Admin.TaskExecutionException, AdminWizardFramework, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has occurred.
Timestamp: 01/25/2011 16:02:44
Message: MessagingManagement
Stack:    at Microsoft.WindowsServerSolutions.Messaging.Tasks.RebindConnectorsTask.Run(ITaskDataLink dl)
    at Microsoft.WindowsServerSolutions.TaskManagement.Admin.AdminDataLink.Run(TaskId taskId, IAssemblyTask task)
    at Microsoft.WindowsServerSolutions.Networking.TaskAgent.Run(TaskId id, IAssemblyTask task, InfoXml runtimeData)
    at Microsoft.WindowsServerSolutions.Networking.Wizards.CTIWizard.NetOperation.RunRebindConnectorsTask()
---------------------------------------
An exception of type 'Type: Microsoft.WindowsServerSolutions.Messaging.Management.MessagingTaskException, MessagingManagement, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has occurred.
Timestamp: 01/25/2011 16:02:44
Message: Failure during monad command execution: get-exchangeserver
Stack:    at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingRunspace.StaticExecute(Command[] commands)
    at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingRunspace.Initialize()
    at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingTasks.Initialize(Boolean InitializeWebServices, ProgressChangedHandler progressHandler)
    at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingTasks..ctor()
    at Microsoft.WindowsServerSolutions.Messaging.Tasks.RebindConnectorsTask.Run(ITaskDataLink dl)
---------------------------------------
An exception of type 'Type: System.Management.Automation.RemoteException, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has occurred.
Timestamp: 01/25/2011 16:02:44
Message: The term 'Get-ExchangeServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Stack:    at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.Invoke()
at Microsoft.WindowsServerSolutions.Messaging.Management.MessagingRunspace.StaticExecute(Command[] commands)

[12808] 110125.160244.0556: CoreNet: RebindConnectorsTask task failed
[14248] 110125.160244.0811: CoreNet: Exception caught in network detection/configuration with a specific router IP: Task: MessagingTasks.TaskRebindSMTPConnectors failed: Microsoft.WindowsServerSolutions.TaskManagement.Admin.TaskExecutionException: Windows SBS did not properly configure your e-mail. To correct this, re-run this wizard.
   at Microsoft.WindowsServerSolutions.Networking.Wizards.CTIWizard.NetOperation.RunRebindConnectorsTask()
   at Microsoft.WindowsServerSolutions.Networking.Wizards.CTIWizard.LocateRouterPagePresenter.m_detectWorker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
[14248] 110125.160244.0889: WizardChainEngine Next Clicked: Going to page {0}.: finish

Cause

This issue can occur if the Domain Admins group is not a member of the Organization Management Exchange Security Group.

Resolution

To resolve this issue, follow these steps:

1.) Open Active Directory Users and Computers

2.) Expand your Domain.local -> Microsoft Exchange Security Groups

3.) In the right-pane, open the properties page for Organization Management security group.

4.) Under the Members tab, add the Domain Admins group.

5.) Click Apply -> OK

6.) Re-run the 'Connect To Internet Wizard'
Properties

Article ID: 2501155 - Last Review: Mar 18, 2011 - Revision: 1

Windows Small Business Server 2011 Standard

Feedback