Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Using the /CLEANVIEWS command-line switch in Outlook
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Using the /CLEANVIEWS command-line switch in Outlook


Serdar Yegulalp
08.15.2005
Rating: -4.33- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


VIEW MEMBER FEEDBACK TO THIS TIP

Outlook has several command-line switches that are used to force the program to start in one of several maintenance modes. In the event that some of Outlook's functions become corrupt, you might need to use one of these maintenance modes to restore full functionality.

One such switch, /CLEANVIEWS, is used when one or more custom views in Outlook is corrupt, and preventing items from being opened or read correctly.

Custom views in Outlook are rendered through XML, and can be done programmatically. For instance, a custom view would allow you to render a view of one's Inbox as a calendar or timeline (instead of a table), with the date and time each message was received as an object in the view.

A damaged custom view might not show up consistently (it might appear or disappear), though, or might render data incorrectly and lead you to believe your Outlook data itself was damaged.

Another symptom of a damaged viewset is when attempting to open an item in the Inbox brings up the error:

This can happen in many modes, not just the Inbox. For instance, the Calendar may show incomplete or incorrect appointment information, or may simply not show up at all. Sometimes the damage is very subtle, such as the Replied-To icon not showing up on messages that have had replies sent.

Note that there are a few cases where you might need to run Outlook a second time with the /CLEANVIEWS switch to get all the custom views removed.

Also, views of items in public folders are affected by /CLEANVIEWS, so if public folder items don't seem to be showing up properly, this may be one way to address the issue.

Finally, bear in mind that all custom views will be removed if you do this, so any custom views you want to keep will need to be restored by hand after this operation.

Serdar Yegulalp is editor of the Windows Power Users Newsletter<...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Don'ts for optimal Exchange 2007 mailbox server efficiency
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters

Microsoft Exchange Server Scripts and Programming
Removing old disclaimers from Exchange Server 2003
How to run Exchange Management Shell cmdlets in Exchange Server 2007
Automate complex Exchange 2007 Management Shell tasks via scripting
Exchange event sink scripting error when configuring email disclaimer
EMS add-on tool generates graphical Exchange Server 2007 reports
A primer on the Exchange Server 2007 Exchange Management Shell
How to generate HTML reports with the Exchange Management Shell (EMS)
Use the Exchange Management Shell Set command to block senders
How to test Exchange Management Shell commands
Grant or deny permissions to access a user's Exchange 2007 mailbox

Microsoft Outlook
Microsoft Outlook and SharePoint interoperability considerations
Outlook 2007 shut-down problems and fixes
Microsoft Outlook and SharePoint calendar dos and don'ts
Free tools facilitate large-scale Outlook and SharePoint integrations
Exchange Mailbag: POP3 settings and Outlook issues
Pros and cons of Outlook 2007's storage engine redesign
Fix Outlook 2007 and SharePoint synchronization breaks
Email issues after configuring hosted Exchange server on laptop
Avoid Outlook 2007 performance issues during repairs
A behind-the-scenes look at Outlook 2007 and SharePoint integration
Microsoft Outlook Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
application program interface  (SearchExchange.com)
event sink  (SearchExchange.com)
synchronous groupware  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


/a>.


MEMBER FEEDBACK TO THIS TIP

How do you start Outlook from the command line?
—Gary L.

******************************************

You can launch Outlook from the command line by simply typing Outlook in the Start -> Run dialog box and pressing Enter.
—Serdar Yegulalp, tip author

******************************************

Is there a complete list of Microsoft Outlook switches available on the Web? I wasn't able to find one.
—Filip V.

******************************************

Check out OutlookTools, a free utility I wrote about in the tip "Free tool taps into Microsoft Outlook's advanced settings." It lets you launch Microsoft Outlook with any of its available command-line switches enabled, and documents what all of them do.
—Serdar Yegulalp, tip author

******************************************

I couldn't open Microsoft Outlook 2003 with an Exchange account. It would return an error that asked me to restart.

When I set up the Exchange profile to load into a .PST data file instead of the Exchange Server mailbox, Microsoft Outlook opened. I discovered that only the Inbox folder would not open -- all the other folders (default or created) would open. Microsoft Outlook automatically defaults to the Inbox folder, causing this error.

I ran Microsoft Outlook with the /CLEANVIEWS switch and the application opened with no problem. Your tip worked great!
—Joe R.


Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Reference Center: Microsoft Outlook tips and resources Please let others know how useful this tip is via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize.

    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts