AD RMS Troubleshooting: Client-Side Tracing (MSIPC)
The latest rights management client, the one that is included in Office 2013 and may be downloaded separately is the Active Directory Rights Management Service Client 2.x. This client is also referred to as the MSIPC client.
There are two logging features we may use to troubleshoot client side issues with MSIPC. One methods utilizes debug output like the MSDRM client did. Office 2013 offers additional logging that may facilitate application related issues with MSIPC. I am going to provide some sample batch file commands to turn on both logging types and turn it off. I will describe how to gather the logs as well.
I'll be adding screenshots for the tool and log file stuff later!
PREQUISITES:
- Download Debug View and save it to the client desktop.
- Create a log enable batch file and save it to the client.
- Create a log disable batch file and save it to the client.
Debug View is an executable program with no installation needed. It is available from Sysinternals. The download link is here.
The following commands create and/or update the needed registry values for logging.
I typically place the contents below into a "ENABLE_IPC_Logging.bat" file.
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSIPC /v Trace /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC /v Trace /t REG_DWORD /d 1 /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Debug /v TCOTrace /t REG_DWORD /d 1 /f
reg add HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\15.0\Common\Debug /v TCOTrace /t REG_DWORD /d 1 /f
The following commands update the registry values to disable the logging.
I typically place the contents below into a "DISABLE_IPC_Logging.bat" file.
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSIPC /v Trace /t REG_DWORD /d 0 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC /v Trace /t REG_DWORD /d 0 /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Debug /v TCOTrace /t REG_DWORD /d 0 /f
reg add HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\15.0\Common\Debug /v TCOTrace /t REG_DWORD /d 0 /f
USING DEBUG VIEW:
- Run the executable as an administrator.
- Accept the EULA (if prompted).
- Under the Capture menu select Capture Global Win32.
- Ensure the capture icon is enabled (it is by default).
- When the data gathering is completed the capture icon may be clicked to stop any additional logging.
- Under the File menu select Save As and save the output to a file.
GATHERING DATA (TROUBLESHOOTING):
- Close any open Office applications.
- Open an administrative command prompt.
- From the command prompt run the ENABALE_IPC_Logging.bat file.
- Run Debug View and enable the correct settings.
- Open the Office application and reproduce the issue.
- Save the Debug View output.
ADDITONAL OFFICE LOGGING:
This information sourced from the following KB article.
Office writes the log files to the Temp directory. To find the location either type "cd %temp%" in a command prompt or type "%temp%" in the Windows client search dialog. If using the command prompt method type "start ." followed by the enter key. This opens an explorer window from the current prompt location.
Sort the temp directory data by "Date Modified" column. Find the file(s) with <application>.exe.log name. If using Word find the winword.exe.log file.