Link to home
Start Free TrialLog in
Avatar of parinpatel
parinpatel

asked on

Remotely remove code from "ThisOutlookSession" (VbaProject.otm)

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.)?
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of parinpatel
parinpatel

ASKER

Thanks much BlueDevilFan.
You're welcome.  Glad I could help.