We have some custom code added to "ThisOutlookSession" for all computers. The vba project is also signed with a digital certificate created with selfcert.exe. We no longer need the functionality that the code was providing and need to remove the code from all computers. What is the best / cleanest way to do this remotely? From my understanding the VbaProject.otm is the file getting saved when the code was added to "ThisOutlookSession". In testing this, simply deleting, renaming or moving the VbaProject.otm from %userprofile%\application data\microsoft\outlook does the trick. The file cannot be deleted, renamed or removed while Outlook is running. Or, manually removing the actual code from the vba project and saving the blank file also works. There are multiple profiles on many of the computers and we need to removed the code / file from All profiles.
1. Is this a safe way to go about getting rid of this code?
2. Do we have to do anything with the digital certificate created with selfcert.exe that was being used to sign the vba project or can it just hang around?
3. Is there a way to remotely remove the file and / or code via Group Policy (start up scripts, etc.)?