Setup Cannot Continue With the Upgrade Because the agent Process Has Open Files

Recently, I was upgrading an Exchange 2010 environment to Service Pack 3. I ran into a slew of different errors.

Five in fact.

Every time I fixed one, another pesky one cropped up.

Very frustrating!

Lots of research and troubleshooting later I was able to get it going. With Service Pack 2 going end of life back on April 8th I wanted to pass that knowledge on.

This article offers a comprehensive guide to the errors I received and how to fix them.

Tip: For a step-by-step guide on how a service pack should behave check out this article.

Readiness Check Fails – IIS 6 WMI Compatibility

This is the first error I received. It was during the readiness check. Thankfully it is very easy to fix.

Exchange 2010 SP3 Readiness Check Failed - IIS 6 WMI Compatibility

To fix:

  1. Open Server Manager .
  2. Select Roles .
  3. Scroll down to the Web Services (IIS) section and click the Add Roles Services link.
    Exchange 2010 SP3 Readiness Check Failed - Install IIS 6 WMI Compatibility
  4. Click Next .
    Exchange 2010 SP3 Readiness Check Failed - Install IIS 6 WMI Compatibility A
  5. Scroll down to Management Tools >> IIS 6 Management Compatibility section.
  6. Select IIS 6 WMI Compatibility .
  7. Click Next .
    Exchange 2010 SP3 Readiness Check Failed - Install IIS 6 WMI Compatibility B
  8. Click Install .
    Exchange 2010 SP3 Readiness Check Failed - Install IIS 6 WMI Compatibility C
  9. Click Close .

At this point, I was able to proceed past the readiness checks. Unfortunately, that was not the end of the problems for me.

The following roles aren't current: AdminToolsRole

Strangely, all of these remaining errors revolved around the Mailbox role. My CAS and HUB transport roles installed without a hitch. The next error is below.

            This server role can't be installed because the following roles aren't current: AdminToolsRole  This server role can't be installed because the following roles aren't current: MailboxRole                      

It seems strange to get this error about not being current. Especially when that is the very thing we are trying to do.

It is also possible to get this error on the ClientAccessRole and HubTransportRole as well. The fix is the same.

Thankfully, this fix was easy and I have to give kudos to Erdal Ozkaya for writing about this on his blog.

To fix we need to go into the registry.

  1. Open the Registry Editor .
  2. Navigate to HKLM\SOFTWARE\Microsoft\ExchangeServer\v14\AdminTools
  3. Make sure the ConfiguredVersion matches the UnpackedVersion .
    ( In my case the unpacked version number was correct for SP3. My configured version reported SP1. )
    The following roles aren't current AdminToolsRole A
  4. If you have String Keys for Action and Watermark, right click on these and select Delete .
    The following roles aren't current AdminToolsRole B
  5. Click Yes to confirm.
  6. Repeat steps 3 and 4 for these registry keys:
    HKLM\SOFTWARE\Microsoft\ExchangeServer\v14\ClientAccessRole
    HKLM\SOFTWARE\Microsoft\ExchangeServer\v14\HubTransportRole
    HKLM\SOFTWARE\Microsoft\ExchangeServer\v14\MailboxRole
  7. Reboot your server.
  8. Rerun SETUP.

All clear?

Sadly, I wasn't.

Mailbox Role Failed: Cannot bind argument to parameter 'Identity' because it is null.

If you had the last error then chances are you have this one too.

Mailbox Role  Failed Error:  The following error was generated when "$error.Clear();  if ($RoleCreatePublicFolderDatabase)  {  $publicDB = get-PublicFolderDatabase -Server:$RoleFqdnOrName -ErrorAction SilentlyContinue;  $DB = get-MailboxDatabase -Server:$RoleFqdnOrName -ErrorAction SilentlyContinue;                          ...edited for length...                        }  " was run: "Cannot bind argument to parameter 'Identity' because it is null.".                          Cannot bind argument to parameter 'Identity' because it is null.                      

The fix is a continuation of what we did in the Registry for the last error.

You may notice from my last screenshot, my MailboxRole was missing a ConfiguredVersion key. That's our problem.

Mailbox Role Failed Cannot bind argument to parameter Identity because it is null. A

To fix:

  1. Open Registry Editor .
  2. Navigate to HKLM\SOFTWARE\Microsoft\ExchangeServer\v14\MailboxRole.
  3. Right-click in the right pane and select New >> String Value from the context menu.
    Mailbox Role Failed Cannot bind argument to parameter Identity because it is null. B
  4. Type ConfiguredVersion for the name.
  5. Double-click ConfiguredVersion and set the value to match the UnpackedVersion .
    ( In my case this is 14.3.123.4. )
    Mailbox Role Failed Cannot bind argument to parameter Identity because it is null. C
  6. If you have String Keys for Action and Watermark, right-click on these and select Delete .
    Mailbox Role Failed Cannot bind argument to parameter Identity because it is null. D
  7. Reboot your server.
  8. Rerun SETUP .

Just when I thought I might be out of the woods -ERRR! New error.

Virtual Directory 'PowerShell' Already Exists

Error:  The following error was generated when "$error.Clear();  $vdirName = "PowerShell (Default Web Site)";  $proxyVdirName = "PowerShell-Proxy (Default Web Site)";  $InternalPowerShellUrl="http://" + $RoleFqdnOrName + "/powershell";  $vdir = get-PowerShellVirtualDirectory -server $RoleFqdnOrName -DomainController $RoleDomainController | where { $_.Name -eq $vdirName };  $proxyVdir = get-PowerShellVirtualDirectory -server $RoleFqdnOrName -DomainController $RoleDomainController | where { $_.Name -eq $proxyVdirName };                          ...edited for length...                                      The virtual directory 'PowerShell' already exists                        under 'EXCHANGE.SKARO.LOCAL/Default Web Site'.  Parameter name: VirtualDirectoryName

For some reason, it didn't like the existence of the PowerShell and PowerShell-Proxy Virtual Directories in IIS. The fix was simple. Delete those virtual directories. It's ok. Setup will recreate them for us.

Here is how:

  1. Open IIS Manager.
  2. Expand your server name.
  3. Expand Sites.
  4. Expand the Default Web Site.
  5. Right-click the PowerShell virtual directory and select Remove from the context menu.
    Exchange 2010 SP3 PowerShell & PowerShell-Proxy Error - How To Fix A
  6. Click Yes to confirm
    Exchange 2010 SP3 PowerShell & PowerShell-Proxy Error - How To Fix B
  7. Repeat steps 5 and 6 for the PowerShell-Proxy virtual directory.
  8. Next open ADSI Edit.
  9. Right-click on the top-level node, ADSI Edit , and select Connect To.. .
    Using ADSI Edit to confirm Exchange Schema Version A
  10. From the Select a well-known naming context drop-down select Configuration.
    Exchange 2010 SP3 PowerShell & PowerShell-Proxy Error - How To Fix E
  11. Expand Configuration <server name>
  12. Expand CN=Configuration <domain suffix>
  13. Expand CN=Services
  14. Expand CN=Microsoft Exchange
  15. Expand CN=<domain name>
  16. Expand CN=Administrative Groups
  17. Expand CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
  18. Expand CN=Servers
  19. Expand CN=<server name>
  20. Expand CN=Protocols
  21. Select CN=HTTP
  22. In the right pane select CN=PowerShell-Proxy (Default Web Site) and select Delete from the context menu.
    Exchange 2010 SP3 PowerShell & PowerShell-Proxy Error - How To Fix C
  23. Click Yes to confirm.
    Exchange 2010 SP3 PowerShell & PowerShell-Proxy Error - How To Fix D
  24. Repeat steps 22 and 23 for CN=PowerShell (Default Web Site) .
  25. Reboot your server.
  26. Rerun SETUP.

That's got to be the end of it right?

Sadly, no.

Couldn't resolve the user or group Discovery Management

This is a problem with the Discovery Search Mailbox. For whatever reason the error below reports that it can not find it.

The following error was generated when "$error.Clear();             $name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]:: DiscoveryMailboxUniqueName;            $dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]:: DiscoveryMailboxDisplayName;            $dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;            if( $dismbx -ne $null)            {...edited for length...            }          " was run: "Couldn't resolve the user or group "SKARO.LOCAL/Microsoft Exchange Security Groups/Discovery Management." If the user or group is a foreign forest principal, you must have either a two-way trust or an outgoing trust.".                          Couldn't resolve the user or group "SKARO.LOCAL/Microsoft Exchange Security Groups/Discovery Management."                        If the user or group is a foreign forest principal, you must have either a two-way trust or an outgoing trust. The trust relationship between the primary domain and the trusted domain failed.

Now, some blogs say to simply disable this Discovery Search Mailbox.

Here is the command. Run from EMS.

            C:\> Disable-Mailbox -Identity "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}"

Unfortunately, I had to take it one step further. Disabling the mailbox alone was not enough. I then had to go into Active Directory Users and Computers and delete the user account as well.

Delete the Discovery Search Mailbox

Once removed I was then able to get through the entire SETUP.

No more errors! Woot!

However, we do need to recreate the Discovery Search Mailbox. This is actually a simple process.

Open a command prompt. Change to the folder where you unpacked SETUP and run the following command.

C:\> SETUP /PrepareAD

Successful output will look like this.

Exchange 2010 PrepareAD

We still need to enable the Discovery mailbox. Issue the following command from EMS.

            C:\> Enable-Mailbox -Identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" -Discovery

To make sure this worked run this command.

            C:\> Get-Mailbox -Filter { RecipientTypeDetails -eq "DiscoveryMailbox" }

You should get an output similar to the following.

Checking for the Discovery Search Mailbox with EMS

We are done!

Scooby Mystery: One thing I noticed on the original Discovery account was the lack of a space between Mailbox and the opening curly bracket. PrepareAD recreated the account with a space. Have you guys seen this?

Was this article helpful to you? Leave a comment to let us know!

Print Friendly, PDF & Email

wallacecolad2000.blogspot.com

Source: https://supertekboy.com/2014/05/06/5-errors-upgrading-to-exchange-2010-sp3-and-how-to-fix-them/

0 Response to "Setup Cannot Continue With the Upgrade Because the agent Process Has Open Files"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel