We would like to use a login script to delete any registry keys called "BACKUP OF Default Outlook Profile".
The keys are located here
\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\
Would anyone here have the code to perform this?
Bare in mind the "Default Outlook Profile" is also in here, so we only want to delete any keys with the word "BACKUP" in it.
I have attached a screenshot. The highlighted key is the one we would like to delete. There can be hundreds in here with the same name, but it will have numbers at the end. I.e BACKUP OF Default Outlook Profile 001.