JSI Tip 9075. How can I use DCOM error logging to troubleshoot DCOM problem in Windows Server 2003?

Jerold Schulman

February 20, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Windows Server 2003 supports enabling and disabling DCOM error logging.

I have scripted DCOMErr.bat to enable or disable DCOM error logging.

The syntax for using DCOMErr.bat is:

DCOMErr ON|OFF

Where ON specifies that you want to enable DCOM error logging, and OFF specifies that you want to disable DCOM error logging.

NOTE: After running DCOMErr.bat, you must restart the DCOM process that you want to effect. The DCOM process determines whether you have to restart the server.

DCOMErr.bat contains:

@echo offsetlocalIf {%1}=={} goto :errif /i "%1" EQU "ON" set data=1&goto doitif /i "%1" EQU "OFF" set data=0&goto doit:err@echo Syntax: DCOMErr ON^|OFFendlocalgoto :EOF:doitset key="HKLMSOFTWAREMicrosoftOle"call :quiet>nul 2>&1endlocalgoto :EOF:quietreg add %key% /V ActivationFailureLoggingLevel /T REG_DWORD /F /D %data%reg add %key% /V CallFailureLoggingLevel /T REG_DWORD /F /D %data%



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like