Outlook 2007's Command

o use switches, at the Start menu, Run command type:
Outlook /switch
Occasionally you'll need to use the full path to Outlook, so the command line looks like:
"C:\Program Files\Microsoft Office\Office12\Outlook.exe " /switch
Note:  Paths that include spaces between words must be enclosed in quotation marks (") and are case sensitive.
You'll need the full path if you create desktop shortcuts.
Many of these switches work in all versions of Outlook.

Switches

/a 
Creates an item with the specified file as an attachment.
Usage:
Outlook /a "C:\My Documents\labels.doc"
If no item type is specified, IPM.Note form is assumed. This switch cannot be used with message classes that aren't based on Outlook.
/altvba otmfilename
Opens the VBA program specified in otmfilename, rather than %appdata%\Microsoft\Outlook\VbaProject.OTM. Use this switch when you need to run macros not in your VBAProject file.
/c messageclass
Creates a new item of the specified message class, works for any valid MAPI form.
Examples:
  • /c ipm.activity creates a Journal entry
  • /c ipm.appointment creates an appointment
  • /c ipm.contact creates a contact
  • /c ipm.note creates an e-mail message
  • /c ipm.stickynote creates a note
  • /c ipm.task creates a task
/checkclient
Prompts for the default manager of e-mail, news, and contacts.
/cleancategories
Deletes any custom category names that you have created. Restores categories to the default names.
/cleanclientrules
Starts Outlook and deletes client-based rules. Used by non-Exchange account users.
/cleandmrecords
Deletes the logging records saved when a manager or a delegate declines a meeting. Used by Exchange Server accounts.
/cleanfinders
Removes Search Folders from the Microsoft Exchange server store.
/cleanfreebusy
Clears and regenerates free/busy information. This switch can only be used when you are able to connect to your Microsoft Exchange server.
/cleanprofile
Removes invalid profile keys and recreates default registry keys where applicable.
/cleanreminders
Clears and regenerates reminders.
/cleanroamedprefs
All previous roaming preferences are deleted and copied again from the local settings on the computer where this switch is used. This includes the roaming settings for reminders, free/busy grid, working hours, calendar publishing, and RSS rules.
/cleanrules
Starts Outlook and deletes client- and server-based rules.
/cleanserverrules
Starts Outlook and deletes server-based rules. Used only with Exchange server accounts.
/cleansharing
Removes all RSS, Internet Calendar, and SharePoint subscriptions from Account Settings, but leaves all the previously downloaded content on your computer. Use this if you are unable to delete one of these subscriptions within Outlook 2007.
/cleansniff
Overrides the programmatic lockout that determines which of your computers (when running Outlook simultaneously) processes meeting items. The lockout process helps prevent duplicate reminder messages. This switch clears the lockout on the computer it is used, enabling Outlook to process meeting items.
/cleansubscriptions
Deletes the subscription messages and properties for subscription features. Used with SharePoint alerts.
/cleanviews
Restores default views. Use with care as all custom views you created are lost.
/embedding
Opens the specified message file (.msg) as an OLE embedding. Also used without command-line parameters for standard OLE co-create.
/f msgfilename
Opens the specified message file (.msg) or Microsoft Office saved search (.oss).
/firstrun
Starts Outlook as if it were run for the first time.
/folder
Opens a new window in "folder" mode (Navigation Pane off).
/hol holfilename
Opens the specified .hol file.
/ical icsfilename
Opens the specified .ics file.
/importprf prffilename
Launches Outlook and opens/imports the defined MAPI profile (*.prf). If Outlook is already open, queues the profile to be imported on the next clean launch.
/l olkfilename
Opens the specified .olk file.
/launchtraininghelp assetid
Opens a Help window with the Help topic specified in assetid.
/m emailname
Provides a way for the user to add an e-mail name to the item. Use either the full address or let alias resolve. Only works in conjunction with the /c command-line parameter.
Usage:
Outlook.exe /c ipm.note /m test@poremsky.com Outlook.exe /c ipm.note /m dianep
/nocustomize
Starts Outlook without loading outcmd.dat (customized toolbars). With older versions of Outlook the *.fav file doesn't load.
/noextensions
Starts Outlook with extensions turned off, but listed in the Add-In Manager.
/nopreview
Starts Outlook with the Reading Pane off and removes the option from the View menu.
/p msgfilename
Prints the specified message (.msg). Does not work with HTML.
/profile profilename
Loads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks.
/profiles
Opens the Choose Profile dialog box regardless of the Options setting on the Tools menu.
/recycle
Starts Outlook using an existing Outlook window, if one exists. Can be used in combination with /explorer or /folder. The Outlook shortcut in the Quick Launch bar uses the /recycle switch.
/remigratecategories
Starts Outlook and and initiates the following commands on the default mailbox:
Upgrades colored For Follow Up flags to Office Outlook 2007 color categories.
Upgrades calendar labels to Office Outlook 2007 color categories.
Adds all categories used on non-mail items into the Master Category List.
Note This is the same command as Upgrade to Color Categories in each Outlook mailbox properties dialog box.
/resetfoldernames
Resets default folder names (such as Inbox or Sent Items) to default names in the current Office user interface language.
For example, if you first connect to your mailbox Outlook using a Russian user interface, the Russian default folder names cannot be renamed. To change the default folder names to another language such as Japanese or English, you can use this switch to reset the default folder names after changing the user interface language or installing a different language version of Outlook.
/resetfolders
Restores missing folders for the default delivery location.
/resetformregions
Empties the form regions cache and reloads the form region definitions from the Windows registry.
/resetsearchcriteria
Resets all Instant Search criteria so that the default set of criteria is shown in each module.
/resetsharedfolders
Removes all shared folders from the Navigation Pane.
/resettodobar
Clears and regenerates the To-Do Bar task list for the current profile. The To-Do Bar search folder is deleted and re-created.
/resetnavpane
Clears and regenerates the Navigation Pane for the current profile. Removes all Shortcuts and Favorite Folders. Has the same effect as deleting profilename.xml in your user directory.
/rpcdiag
Opens Outlook and displays the remote procedure call (RPC) connection status dialog.
/s filename
Loads the specified shortcuts file (.fav). Use to load *.fav files created in older versions of Outlook.
/safe
Starts Outlook without extensions, Reading Pane, or toolbar customization.
/safe:1
Starts Outlook with the Reading Pane off. New to Outlook 2003.
/safe:2
Starts Outlook without checking mail at startup. New to Outlook 2003.
/safe:3
Starts Outlook with extensions turned off, but listed in the Add-In Manager.
/safe:4
Starts Outlook without loading Outcmd.dat (customized toolbars) and *.fav file.
/select foldername
Starts Outlook and opens the specified folder in a new window.
Usage:
"C:\Program Files\Microsoft Office\Office12\Outlook.exe" /select outlook:calendar
outlook /select "outlook:Inbox\Old Messages"
/share //URL
The /share switch specifies a sharing URL to connect to Outlook.
Examples:
  • /share web://URL/filename
  • /share feed://URL/filename
  • /share stssync://URL connects a Microsoft Windows SharePoint Services 3.0 list
/sniff
Starts Outlook and forces a detection of new meeting requests in the Inbox, and then adds them to the calendar.
/t oftfilename
Opens the specified .oft file.
/v vcffilename
Opens the specified .vcf file.

No comments:

Post a Comment

chitika

stumbleupon

Related Posts Plugin for WordPress, Blogger...

Infolinks In Text Ads