Q: What are the "clean" command-line switches in Outlook 2010?

Microsoft Outlook 2010 includes command-line switches you can use to purge content in local caches within Outlook profiles.

William Lefkovics

November 29, 2011

3 Min Read
ITPro Today logo in a gray background | ITPro Today

A:Microsoft Outlook includes a set of command-line switches that let you perform various tasks, from troubleshooting issues by resetting some aspect ofOutlook to its default, to launching a specific component of Outlook, such as a new appointment form. Outlook 2010 added a series of "clean"command-line switches to help manage Outlook caches. In addition to "clean" switches already present in Outlook 2007, such as /cleancategories,/cleanclientrules, and /cleanroamedprefs, Outlook 2010 adds a few unique to its version: /cleanautocompletecache, /cleanfromaddresses,/cleanconvongoingactions, and /cleansharing. For a complete list of Outlook switches, please see the Microsoft article "Command-line switches forOutlook 2010."

Outlook caches a lot of input content to provide a more efficient user experience. Microsoft added several new command-line switches to Outlook 2010that purge content in local caches within Outlook profiles. These new switches all include the term clean in them, which, as it suggests,removes content from caches identified by the switch. Let's take a look at how you would use the /cleanfromaddresses switch.

When you send an email message from Outlook, but manually change the From address for the message to something other than your account's defaultaddress, Outlook saves that address in a cache in the profile on the local workstation, similar to the Outlook nickname cache used in recipient fields.The From Address cache maintains addresses from user input and doesn't discriminate; that is, it also saves erroneous human input. When you open a newmessage in Outlook, you can select the From button, which opens a drop-down menu. At the bottom of that context menu, you can select Other E-mailAddress to open the input window that Figure 1 shows.


Figure 1: Entering a different From address in Outlook 2010

For accounts that authenticate to an SMTP server (e.g., IMAP or POP), users could potentially change the From address to anything that adheres to thestandard SMTP address format. Outlook caches those addresses for easy re-use in another message. Figure 2 shows an example with cached addresses shownin the drop-down menu in a new message.


Figure 2: Cached From addresses in the drop-down menu in Outlook 2010

As the name command-line switch suggests, you execute this switch as an option for the outlook.exe executable. The /cleanfromaddresses switchremoves all content stored in this cache:

c:Program FilesMicrosoft OfficeOffice14>outlook.exe /cleanfromaddresses

If you have the 32-bit version of Office installed on a 64-bit Windows OS, the path would show the x86 path for program files:

c:Program Files (x86)Microsoft OfficeOffice14>outlook.exe /cleanfromaddresses

The command launches Outlook 2010 and performs the requested action of the switch during startup. The same principle extends to the other "clean"command-line switches for outlook.exe. For example, to clear the nickname cache, you would launch outlook with the /cleanautocompletecache switch atthe command line. For this and other "clean" command-line switches to work, you must exit Outlook 2010-and wait so that outlook.exe is no longer in thelist of processes in Task Manager-before executing the command-line option.

Also, as of this writing, the command-line switch for /cleanfromaddresses is listed in Microsoft's documentation as /cleanfromaddress. This switchneeds to be plural to avoid the error "The Command Line argument is not valid. Verify the switch you are using."

About the Author

William Lefkovics

William Lefkovics, BSc, MCSE is the Technical Director at Mojave media group, LLC in Las Vegas, NV. He is the co-author of Microsoft Exchange Server 2007: The Complete Reference.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like