Error while opening emails with permission...

Today, while I was trying to read a mail sent with Permissions, I was unable to do it. It threw the following error message...

Your Information Rights Management configuration is invalid and needs to be repaired. For more information, contact your system administrator.


To isolate this problem, I tried creating a new mail and clicked on Permission button, and I got the same error message. Thankfully, I got it working pretty soon and resolution was pretty simple. Create a .bat file and paste the following... and then execute the batch file.

del /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\DRM\*.*"
del /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\DRM\server\*.*"
del /q /f "%USERPROFILE%\Application Data\Microsoft\DRM\*.*"
del /q /f "%USERPROFILE%\Local Settings\Application Data\Microsoft\DRM\*.*"
del /q /f "%SYSTEMROOT%\system32\secrep.dll"
del /q /f "%SYSTEMROOT%\system32\secure*.sst"
attrib -h -s "%SYSTEMROOT%\system32\clockfile.drm"
del /q /f "%SYSTEMROOT%\system32\clockfile.drm"

I use a Vista 64 bit box, and I was able to fix my machine. For more details around this, please visit this link.

Hope this helps,