Thursday, September 29, 2011

Command-line switches for MS Outlook


Outlook - Common Outlook Start Up Command Line Switches
There are a number of command line switches for Outlook. These can be run either from a Command Prompt, or via the Run box. In all cases you need to ensure that Outlook is not running - use Task Manager to ensure that outlook.exe or anything "MAPI" is not listed. These are the most commonly used command line switches:
outlook.exe /CleanFinders
Sets Outlook 2003 Search Folders back to the default state (deletes custom Search Folders)
outlook.exe /CleanFreeBusy
Cleans and regenerates free/busy information.
outlook.exe /CleanReminders Cleans and regenerates reminders.
outlook.exe /CleanRules Cleans and removes both server side and client side rules. Used to clear Out of the Office rules.
outlook.exe /CleanServerRules Cleans and removes server side rules only.
outlook.exe /CleanSchedPlus
Deletes all Schedule+ data (free/busy, permissions, and .cal file) from the server.
outlook.exe /CleanViews
Restores default views.
outlook.exe /ResetFolderNames
Resets the language of the default folders to the language of the Outlook client.
outlook.exe /ResetFolders
Restores missing folders for the default delivery location.
outlook.exe /ResetOutlookBar
Rebuilds the Outlook Bar.
outlook.exe /ResetWunderBar
Rebuilds the new Outlook Control Bar in Outlook 2003
outlook.exe /RPCDIAG
Starts Outlook with an additional window that shows the connection status of Outlook, useful for diagnosing issues with RPC over HTTPS/Outlook Anywhere. Can also be accessed after Outlook has started by holding down CTRL while right clicking on the Outlook icon in the system tray and choosing Connection Status.
Safe Mode Rules
Useful for getting Outlook to start when there are problems. Not all variants apply to all versions.
outlook.exe /safe Starts Outlook without extensions, the Reading Pane, or any toolbar customization.
outlook.exe /safe:1 Starts Outlook with the just the Reading Pane off.
outlook.exe /safe:2 Starts Outlook without checking for mail at startup (good if you have a bad message in the mailbox) - also /nopollmail
outlook.exe /safe:3 Starts Outlook with extensions turned off, but listed in the Add-In Manager (usually addins aren't listed)
outlook.exe /safe:4 Starts Outlook without loading Outcmd.dat (customized toolbars) and *.fav file.


he command that starts Microsoft Outlook is Outlook.exe. A command-line switch is the addition of a forward slash (/) followed by the switch name and any parameters the switch has.
HideHow to use switches

  1. Search for the Microsoft Outlook executable file, Outlook.exe, and make a note of the path to Outlook.exe. For example, the path might be C:\Program Files\Microsoft Office\Office11\Outlook.exe.
  2. Click Start, and then click Run.
  3. In the Open box, type the complete path you noted in step 1, including the file name. Press the SPACEBAR once, and then type a forward slash mark (/) followed by the switch.
For example, if you want to use the CleanReminders switch, the command you type in the Open box should look like this:"C:\Program Files\Microsoft Office\Office11\Outlook.exe" /Cleanreminders
 NOTE   Paths that include spaces between words must be enclosed in quotation marks (") and are case sensitive.
  1. To run the command, click OK.
HideSwitch reference
SWITCHDESCRIPTION
/a
Creates an item with the specified file as an attachment.
Example:
  • "C:\Program Files\Microsoft Office\Office11\Outlook.exe" /a "C:\My Documents\labels.doc"
If no item type is specified, IPM.Note is assumed. Cannot be used with message classes that aren't based on Outlook.
/altvbaotmfilenameOpens the VBA program specified in otmfilename, rather than %appdata%\Microsoft\Outlook\VbaProject.OTM.
/c messageclass
Creates a new item of the specified message class (Outlook forms or any other 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
/checkclientPrompts for the default manager of e-mail, news, and contacts.
/cleanclientrulesStarts Outlook and deletes client-based rules.
/cleandmrecordsDeletes the logging records saved when a manager or a delegate declines a meeting.
/cleanfindersRemoves Search Folders from the Microsoft Exchange server store.
/cleanfreebusyClears and regenerates free/busy information. This switch can only be used when you are able to connect to your Microsoft Exchange server.
/cleanprofileRemoves invalid profile keys and recreates default registry keys where applicable.
/cleanpstLaunches Outlook with a clean Personal Folders file (.pst).
/cleanremindersClears and regenerates reminders.
/cleanrulesStarts Outlook and deletes client- and server-based rules.
/cleanschedplusDeletes all Schedule+ data (free/busy, permissions, and .cal file) from the server and enables the free/busy information from the Outlook Calendar to be used and viewed by all Schedule+ 1.0 users.
/cleanserverrulesStarts Outlook and deletes server-based rules.
/cleansniffDeletes duplicate reminder messages.
/cleansubscriptionsDeletes the subscription messages and properties for subscription features.
/cleanviewsRestores default views. All custom views you created are lost.
/designerStarts Outlook without figuring out if Outlook should be the default client in the first run.
/embeddingOpens the specified message file (.msg) as an OLE embedding. Also used without command-line parameters for standard OLE co-create.
/f msgfilenameOpens the specified message file (.msg) or Microsoft Office saved search (.oss).
/firstrunStarts Outlook as if it were run for the first time.
/hol holfilenameOpens the specified .hol file.
/ical icsfilenameOpens the specified .ics file.
/importprfprffilenameLaunches 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 olkfilenameOpens the specified .olk file.
/launchtraininghelpassetidOpens 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. Only works in conjunction with the /c command-line parameter.
Example:
  • Outlook.exe /c ipm.note /m emailname
/nocustomizeStarts Outlook without loading outcmd.dat (customized toolbars) and *.fav file.
/noextensionsStarts Outlook with extensions turned off, but listed in the Add-In Manager.
/nopollmailStarts Outlook without checking mail at startup.
/nopreviewStarts Outlook with the Reading Pane off.
/p msgfilenamePrints the specified message (.msg). Does not work with HTML.
/profile profilenameLoads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks (").
/profilesOpens the Choose Profile dialog box regardless of the Options setting on the Tools menu.
/recycleStarts Outlook using an existing Outlook window, if one exists. Used in combination with /explorer or /folder.
/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.
/resetfoldersRestores missing folders for the default delivery location.
/resetnavpaneClears and regenerates the Navigation Pane for the current profile.
/rpcdiagOpens Outlook and displays the remote procedure call (RPC) connection status dialog.
/s filenameLoads the specified shortcuts file (.fav).
/safeStarts Outlook without extensions, Reading Pane, or toolbar customization.
/safe:1Starts Outlook with the Reading Pane off.
/safe:2Starts Outlook without checking mail at startup.
/safe:3Starts Outlook with extensions turned off, but listed in the Add-In Manager.
/safe:4Starts Outlook without loading Outcmd.dat (customized toolbars) and *.fav file.
/selectfoldernameStarts Outlook and opens the specified folder in a new window. For example, to open Outlook and display the default calendar use: "c:\Program Files\Microsoft Office\Office11\Outlook.exe" /select outlook:calendar
/sniffStarts Outlook and forces a detection of new meeting requests in the Inbox, and then adds them to the calendar.
/t oftfilenameOpens the specified .oft file.
/v vcffilenameOpens the specified .vcf file.
/vcal vcsfilenameOpens the specified .vcs file.
/x xnkfilenameOpens the specified .xnk file.

No comments:

Explaining DNS Concepts - DNS Servers-DNS Queries-DNS Records

3 types of DNS queries— recursive, iterative, and non-recursive 3 types of DNS servers— DNS Resolver, DNS Root Server and Authoritative Name...