Powershell error when provisioning a service


Summary

This article provides information how to handle the powershell snap in error when provisioning an Exchange 2013 service.

Applies To

MachPanel v4.x.xx and v5.x.xx

ERROR Message 1:

The Windows PowerShell-Snap-In Microsoft.Exchange.Management.PowerShell.E2010 is trying to load an Exchange 2013 assembly. "C:\Program Files\Microsoft\Exchange Server\V15\bin\Microsoft.Exchange.PowerShell.Configuration.dll"

ERROR MESSAGE 2: (Shows up in windows even viewer)

.NET Runtime version 2.0.50727.4247 - Fatal Execution Engine Error (000007FEF97227FA) (80131506)

Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e03238, faulting module mscorwks.dll, version 2.0.50727.4247, time stamp 0x5265c61f, exception code 0xc0000005, fault offset 0x00000000006c4b89, process id 0x%9, application start time 0x%10.

ERROR MESSAGE 3: (Shows up in Hyper-V Module)

Error: Error processing command: The term 'New-VM' 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.


Solution

If MachPanel fails to update to the correct version for Lync2013, Exchange2013, Sharepoint2013 use .Net Framework 4.0. 

Please follow steps in order to fix the issue:
  1. Open MachSol.MachPanel.Provisioning-Svc.exe.Config on Remote server (normally exchange 2013 mailbox server) under MachPanel Remote Server installation directory.
  2. Replace the code

<       <startup><supportedRuntime version="v2.0.50727"/></startup>

        BY

<       <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>







OR
  • Replace attached file on remote.
  • Restart MachPanel Provisioning Service on Remote Server and try creating account again.

Note:
Please find "MachSol.MachPanel.Provisioning-Svc.zip" file in attachment.