Le Café Central de
Deva             


                    ... Deva blogs!!



  • Le Café Central de DeVa

    Mailbox store & Public folder Store - Basic Information

    • 0 Comments

    Basic Information about "Mailbox store and Public folder Store"

    • MS Exchange store is a storage platform. The Exchange store is also known as the Web Storage System.
    • It provides a single repository for managing multiple types of unstructured information in one infrastructure.
    • Mailbox stores & public folder stores are two of the components of the Exchange store.

    MS Exchange Server 2000 & 2003 include two types of information databases:

    • Mailbox Store:
      • Hold personal mailbox information.
    • Public Folder Store:
      • It's a shared repository, where information that is shared among many users. Public folders should be used when your business requires data replication to multiple servers.
  • Le Café Central de DeVa

    Setting Locale information

    • 1 Comments

    Found one of the interesting function "Setlocale".

    Setlocale function sets the global locale and returns the previous locale. This function has a parameter "lcid" to identify uniquely a locale, which is a 32 bit value/short string.

    Syntax: Setlocale(lcid)

    If "lcid" is set as Zero(0), then it will set the current system setting.

    Please find the working sample available, click here

  • Le Café Central de DeVa

    Monitoring Event Sink # 1 - Listing registered Event sink information

    • 0 Comments

    Use the following command at command window to get list of registered Event sink registration:

    Cscript [//NOLOGO] ListMailboxes.vbs {/F:filename | /S:servername} [/DEBUG]

    Where,

    //NOLOGO

    Suppresses the version of Windows Script Host (WSH) and copyright information.

    /F

    The name of the text file that contains the names of the servers, will be available one per line, for which you want to list mailboxes. You must create the text file before you use this script.

    /S

    Name of the server that contains the mailboxes that you want to list.

    /DEBUG

    Outputs verbose debug information that you can use for diagnosis.

    Note:

    You must specify either the /F or /S switch.

    For more information, please read this Technet article click here.

  • Le Café Central de DeVa

    Event Sink - How to guides

    • 0 Comments

    Event Sink - How to guides:

  • Le Café Central de DeVa

    Get all mailbox information from WMI & C#.Net

    • 0 Comments

    In one scenario, there was a need for me to get all mailbox related information using WMI and C#.Net.

    Here is a code snippet to get all mailbox information from an Exchange Server - WMI & C#.Net.

    using System;
    using System.Management;

    namespace ConsoleTwo
    {
        class Class1
        {


            [STAThread]
            static void Main(string[] args)
            {
                try
                {
     
                    System.Management.ConnectionOptions objcon = new System.Management.ConnectionOptions();
                     objcon.Impersonation = ImpersonationLevel.Impersonate;
     
                    // Exchange Server Name
                    string cServername = "Server Name";
     
                    // Create a management scope into Exchange WMI namespace
                    System.Management.ManagementScope exScope =
                        new System.Management.ManagementScope(@"\\" + cServername + @"\root\MicrosoftExchangeV2", objcon);

                    // Create a query to get the data from the Exchange WMI
                    System.Management.ObjectQuery objQry =
                        new System.Management.ObjectQuery("SELECT * FROM Exchange_Mailbox");

                    // Retrieves a collection of management objects based on the query.
                    System.Management.ManagementObjectSearcher objSrch =
                        new System.Management.ManagementObjectSearcher(exScope, objQry);
                    System.Management.ManagementObjectCollection qryCol = objSrch.Get();

                     // Loop each item in the collection
                    foreach (System.Management.ManagementObject mailBox in qryCol)
                    {
                         Console.WriteLine("{0} {1} {2}", mailBox["MailboxDisplayName"].ToString() , mailBox["TotalItems"].ToString() , mailBox["size"].ToString() );
                     }
                 }
                catch (Exception eVal)
                {
                    Console.Write(eVal.InnerException + eVal.Message + eVal.Source + eVal.StackTrace );
                }
                Console.Read(); 
            }
        }
        }

  • Le Café Central de DeVa

    Event sink: Will it sink?

    • 0 Comments

    Lets we discuss about Event sink: It will sink?

    Just for words, it might be fascinating or it will be funny to hear such remarks. Some guys even crib about that too; but it's not actually. Event sink is one of the strongest feature available in Exchange environment; they're helpful in many scenarios and quite lot of applications wrapped around it.

    I have worked with couple of scenarios with Event sink; it can be used to monitor the incoming/outgoing mails, virus scanning applications, stripping attachments, spam filters etc.

    So what is a Event sink

    It's a piece of code which defines how the server or the computer is to handle the given events.

    What it can be used for?

    They can be used as spam filters to fire certain actions;

      • act as spam filter
      • to find certain types of attachments
      • can get response to the receipt of an e-mail message with certain characteristics
      • to strip out the incoming/outgoing attachments
      • download the attachments to specific physical folders
      • block the attachments within their org/enterprise level
      • to delete excessive data sent............................................. for more information, please click here

    What are the Technologies can we create event sinks:

    • VB Script
    • Managed Sink - Created & compiled in .Net framework
    • C++

    Types of Event sinks:

    • Synchronous
    • Asynchronous
    • System

    For detailed information, please find @ Matt's blog

Page 2 of 2 (31 items) 12