A script can be created to remove the profile and an application launcher element to run the PowerShell script:
Script used:
#For Outlook 2010
$ClearOutlook = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
del $ClearOutlook -force -Recurse
#For Outlook 2013
$ClearOutlook = "HKCU:\Software/Microsoft/Office/15.0/Outlook/Profiles"
del $ClearOutlook -force -Recurse
#For Outlook 2016
$ClearOutlook = "HKCU:\Software/Microsoft/Office/16.0/Outlook/Profiles"
del $ClearOutlook -force -Recurse
Save the script as a .ps1 (deleteprofiles.ps1 for example) file, and locate it in a network shared folder (\\server\shared for instance) and then create an Pre-engine element with this configuration:
File name including path: \\server\shared\deleteprofiles.ps1
Use the validation logic to run this element only once so profiles are not removed in the future, to do this create a new validation logic rule and add a Timing and Events > Frequency > One time (computer).
Disable any existing Microsoft Outlook Profile element to prevent the profile from being created again.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center