Migrating or Upgrading Exchange Server 2010 to 2016

Usama A. Rub 146 Reputation points
2021-11-22T07:10:22.243+00:00

We have Exchange server 2010 running in our environment. Its an internal domain and has no connection to internet.

We now want to upgrade the exchange server 2010 to 2016 as we want to establish a site failover solution later on.

In our environment we have 2 domain controllers (primary and secondary).

From information on the internet i understand that i will have to create a new exchange server 2016 and then migrate everything from my currently running exchange server 2010 to the new one.

So i did create a new server for ex2016. Performed all steps from Microsoft exchange migration assistant. But when i try to install mailbox role i get error related to active directory.

Error:
The following error was generated when "$error.Clear();
New-PushNotificationsVirtualDirectory -Role Mailbox -OAuthAuthentication:$RoleIsDatacenter -DomainController $RoleDomainController;
" was run: "System.ArgumentException: The AD configuration for virtual directory 'PushNotifications' already exists in 'CN=PushNotifications (Exchange Back End),CN=HTTP,CN=Protocols,CN=MAILSRV01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=EIM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=EIM,DC=IMC', please remove this AD configuration manually.
Parameter name: VirtualDirectoryName
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Management.SystemConfigurationTasks.NewExchangeVirtualDirectory`1.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

What i understand is that my AD was already prepared for previous exchnage server. So now when new server is trying to add its folders etc in AD it causing problems.

Need help regarding this issue please.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,335 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 141.1K Reputation points MVP
    2021-11-22T14:00:20.333+00:00

    Its telling you want to do:

    'CN=PushNotifications (Exchange Back End),CN=HTTP,CN=Protocols,CN=MAILSRV01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=EIM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=EIM,DC=IMC', please remove this AD configuration manually.

    Can you remove that with adsiedit.msc? Just be careful not to delete anything else and then re-run setup

    Example of where to find it in

    Instead of the OWA virtual dir , browse to : CN=PushNotifications (Exchange Back End) and remove

    CN=PushNotifications (Exchange Back End),CN=HTTP,CN=Protocols,CN=MAILSRV01,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=EIM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=EIM,DC=IMC'

    https://www.alitajran.com/an-error-occurred-while-creating-the-iis-virtual-directory/

    2 people found this answer helpful.

  2. Amit Singh 4,846 Reputation points
    2021-11-24T09:45:28.657+00:00

    The error indicates that "The AD configuration for virtual directory 'PowerShell' already exists"

    So, you should need some hard delete of configurations

    1. Delete Powershell website under default web site of IIS on this server
    2. ADSIEDT ->“Configuration” . Navigate to CN=Configuration,DC=domain,DC=suffix CN=Services
      CN=Microsoft Exchange
      CN=[your domain]
      CN=Administrative Groups
      CN=Exchange Administrative Groups
      CN=Servers
      CN=[your server]
      CN=Protocols
      CN=HTTP
      1. Find the (in the right pane) CN=Powershell (Default Web Site), and (Exchange Back End) … and delete it
      2. Delete the following registry keys (if exists):

    KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v15\MailboxRole

    Find the “Action” key and delete it.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager

    Locate the “PendingFileRenameOperations” key and delete it.

    You can also check How to Upgrade Exchange 2010 to 2016 article for help.


    Please mark as "Accept the answer" if the above steps helps you. Your suggestion will help others also !

    2 people found this answer helpful.
    0 comments No comments