Why is my exchange shell and Management Console not opening :: EXCHANGE 2007?
Recently We had a Case in which we did a restore of the server by using recover server and found
that We were unable to open the Exchange Management Shell, Exchange Management Console
we were missing the Powershell Logs from the event viewer
Cause
Missing Registry Entries
Resolution
PROBLEM 1 : Issues Opening The Exchange Management Shell
Go to the Following
Location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns
and Check if we have the snapins. In our case we did not have the Snapins.
We Imported the registry from a working server. We can also use the following
Text to import it back. Please make sure that we change the Exchange
Installed Path according to the environment
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1]
"Install"=dword:00000001
"PID"="89383-100-0001260-04309"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\0409]
"Install"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine]
"ApplicationBase"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0"
"RuntimeVersion"="v2.0.50727"
"ConsoleHostAssemblyName"="Microsoft.PowerShell.ConsoleHost,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
ProcessorArchitecture=msil"
"ConsoleHostModuleName"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Microsoft.PowerShell.ConsoleHost.dll"
"PowerShellVersion"="1.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\Microsoft.Exchange.Management.PowerShell.Admin]
"CustomPSSnapInType"="Microsoft.Exchange.Management.PowerShell.AdminPSSnapIn"
"ApplicationBase"="C:\\Program
Files\\Microsoft\\Exchange
Server\\bin"
"AssemblyName"="Microsoft.Exchange.PowerShell.Configuration,
Version=8.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
"Description"="Admin Tasks for the Exchange
Server"
"ModuleName"="C:\\Program Files\\Microsoft\\Exchange
Server\\bin\\Microsoft.Exchange.PowerShell.Configuration.dll"
"PowerShellVersion"="1.0"
"Vendor"="Microsoft
Corporation"
"Version"="8.0.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\Microsoft.Exchange.Management.Powershell.Support]
"CustomPSSnapInType"="Microsoft.Exchange.Management.Powershell.Support.SupportPSSnapIn"
"ApplicationBase"="C:\\Program
Files\\Microsoft\\Exchange
Server\\bin"
"AssemblyName"="Microsoft.Exchange.Management.Powershell.Support,
Version=8.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
"Description"="Support Tasks for the
Exchange Server"
"ModuleName"="C:\\Program Files\\Microsoft\\Exchange
Server\\bin\\Microsoft.Exchange.Management.Powershell.Support.dll"
"PowerShellVersion"="1.0"
"Vendor"="Microsoft
Corporation"
"Version"="8.0.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]
"Path"="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
"ExecutionPolicy"="RemoteSigned"
PROBLEM 2 : Issues Opening The Exchange Management Console
Go to the Following Location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\ in the registry and check for
the exchange, in our case it was missing and due to that we were not even able
to see the MMC if we try to go to start > run > MMC and tried to add .
We Imported the registry from a working server. We can also use the following
Texts to import it back. Please make sure that we change the Exchange
Installed Path according to the environment and this can be only used
for the Standalone. PLEASE DO NOT USE THIS FOR CLUSTER
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{76dd58f7-54ba-42e3-a2e0-dbf4b674539f}]
@=""
"Type"="Microsoft.Exchange.Management.SnapIn.Esm.ExchangeRootSnapIn,
Microsoft.Exchange.Management.SnapIn.Esm,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8f
de8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd
0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b
2a2b1247adc3652bf5c308055da9"
"ApplicationBase"="C:\\Program
Files\\Microsoft\\Exchange Server\\bin"
"NameString"="Exchange Server
2007"
,
Version 4.0.12 reserved.
Portions ?2005
reserved."
"ModuleName"="Microsoft.Exchange.Management.SnapIn.Esm.dll"
"AssemblyName"="Microsoft.Exchange.Management.SnapIn.Esm"
"RuntimeVersion"="v2.0.50727"
"FxVersion"="2.0"
"About"="{00000000-0000-0000-0000-000000000000}"
"NameStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-903;8.2.176.0"
"DescriptionStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-904;8.2.176.0"
"ProviderStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-101;8.2.176.0"
"VersionStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.SnapIn.Esm.dll,-102;8.2.176.0"
"IconIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-910"
"LargeFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-911"
"SmallFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-912"
"SmallSelectedFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-912"
"FolderBitmapsColorMask"=dword:00ff00ff
"HelpTopic"="C:\\Program
Files\\Microsoft\\Exchange
Server\\bin\\exchhelp.chm"
"SyncPropertyPageSetActive"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{76dd58f7-54ba-42e3-a2e0-dbf4b674539f}\Standalone]
@=""
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{7a7e61b7-e5c8-4d65-904e-f26589b6c1e3}]
"NameStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1203;8.2.176.0"
"DescriptionStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1204;8.2.176.0"
"ProviderStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-101;8.2.176.0"
"VersionStringIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.PublicFolders.dll,-102;8.2.176.0"
"IconIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1210"
"LargeFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1211"
"SmallFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1212"
"SmallSelectedFolderBitmapIndirect"="@C:\\Program
Files\\Microsoft\\Exchange
Server\\Bin\\Microsoft.Exchange.Management.NativeResources.dll,-1212"
@=""
"Type"="Microsoft.Exchange.Management.PublicFolders.PublicFolderSnapIn,
Microsoft.Exchange.Management.PublicFolders,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67
871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee602
1672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f5968
36f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9"
"ApplicationBase"="C:\\Program
Files\\Microsoft\\Exchange Server\\bin"
"NameString"="Public Folder
Management Console"
"Description"="Allows management of Exchange Server 2007
Public Folders. ?2007 Microsoft Corporation. All rights
reserved."
"ModuleName"="Microsoft.Exchange.Management.PublicFolders.dll"
"AssemblyName"="Microsoft.Exchange.Management.PublicFolders"
"RuntimeVersion"="v2.0.50727"
"FxVersion"="3.0.0.0"
"About"="{00000000-0000-0000-0000-000000000000}"
"FolderBitmapsColorMask"=dword:00ff00ff
"HelpTopic"="C:\\Program
Files\\Microsoft\\Exchange
Server\\bin\\exchhelp.chm"
"SyncPropertyPageSetActive"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{7a7e61b7-e5c8-4d65-904e-f26589b6c1e3}\NodeTypes]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{7a7e61b7-e5c8-4d65-904e-f26589b6c1e3}\Standalone]
@=""
PROBLEM 3 : Missing Power Shell Logs in the Event Viewer
I removed the following registry entry on my lab box from the
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\PowerShell and i was
in the same situation, i do not see the Powershell logs on the event viewer.
Before Deleting, i had an export of the export, so i imported the same by
using the the following text and saving it as .reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\PowerShell]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\PowerShell\Exchange]
@=""
"EventMessageFile"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,\
00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,\
6f,00,73,00,6f,00,66,00,74,00,5c,00,45,00,78,00,63,00,68,00,61,00,6e,00,67,\
00,65,00,20,00,53,00,65,00,72,00,76,00,65,00,72,00,5c,00,62,00,69,00,6e,00,\
5c,00,70,00,77,00,72,00,73,00,68,00,6d,00,73,00,67,00,2e,00,64,00,6c,00,6c,\
00,00,00
"CategoryMessageFile"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,\
61,00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,\
00,6f,00,73,00,6f,00,66,00,74,00,5c,00,45,00,78,00,63,00,68,00,61,00,6e,00,\
67,00,65,00,20,00,53,00,65,00,72,00,76,00,65,00,72,00,5c,00,62,00,69,00,6e,\
00,5c,00,70,00,77,00,72,00,73,00,68,00,6d,00,73,00,67,00,2e,00,64,00,6c,00,\
6c,00,00,00
"CategoryCount"=dword:00000007
More Information
PLEASE BACK UP THE EXSISTING REGISTRY BEFORE APPLYING THE ABOVE
FIX
Important This method contains steps that tell you how to modify
the registry. However, serious problems might occur if you modify the registry
incorrectly.
Therefore, make sure that you follow these steps carefully. For added
protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.
For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756
(https://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows
Written by:
Naveen Vasudevan, Technical Lead, Enterprise Communications Services, Microsoft
Have fun with Powershell and exchange :)
Comments
- Anonymous
April 25, 2013
Good Job Naveen. good article