Exchange

There are 5 entries for the tag Exchange

Starting Innovation Tour

Un evento da non perdere ;-) http://www.microsoft.com/italy/lancio/roadshow/eventi/technical.mspx   Technorati Tags: Exchange, .NET, XML, SharePoint

Nuova virtual machine

Sto finendo di configurare la mia nuova virtual machine; sofware installato: Windows Server 2003 Exchange SQL Server 2005 Visual Studio 2005 SharePoint Portal Server BizTalk 2006 Access...

Riconnettere una Mailbox Exchange in stato TombStoned

Se viene cancellato un utente da Active Directory a cui era associata una MailBox Exchange, quest’ultima non viene cancellata insieme all’utente, ma viene disconnessa e rimane in stato “tombstoned” per 30 giorni (valore di default). E’ comunque possibile riconnettere una MailBox in questo stato ad un altro utente utilizzando il seguente codice:   string server = "MIOSERVER"; ...

Creare una MailBox in Exchange (un'altra soluzione)

In un mio precedente post avevo spiegato come creare una mailbox in Exchange utilizzando l’SDK di Exchange e .NET; è una soluzione che funziona correttamente, tuttavia a livello di performance lascia un po’ a desiderare, inoltre obbliga ad installare l’SDK di Exchange sul client che utilizziamo. Per fortuna esiste una soluzione alternativa, ovvero scrivere direttamente su Active Directory tutti gli attributi necessari per l’attivazione della MailBox:   DirectoryEntry user = new DirectoryEntry("LDAP://CN=username,DC=myDomain,DC=local");   // Definisce i proxyAddresses string[] proxy = {"SMTP:username@ugidotnet.it", "X400:c=US;a= ;p=Organization;o=Exchange;s=samaccountname;"};   // Imposta le proprietà user.Properties["mail"].Value = " nomeutente@ugidotnet.it"; user.Properties["textEncodedORAddress"].Value = "X400:c=US;a= ;p=Organization;o=Exchange;s=username;"; user.Properties["proxyAddresses"].Value = proxy; user.Properties["msExchUserAccountControl"].Value = 0;   user.Properties["mDBUseDefaults"].Value = "FALSE"; user.Properties["mDBOverHardQuotaLimit"].Value = 3145728; user.Properties["mDBOverQuotaLimit"].Value = 3145728; user.Properties["mDBStorageQuota"].Value = 2831155; user.Properties["msExchQueryBaseDN"].Value = "OU=Empty,OU=MyOU,DC=emslabw3,DC=local"; user.Properties["msExchMailboxFolderSet"].Value...

Creare una MailBox in Exchange

Per creare una mailbox su un account AD tramite .NET è necessario prima di tutto installare l’SDK di Exchange sul proprio computer ed aggiungere la reference ai relativi oggetti COM.   // Definisce il DistinguishedName del MailStore Exchange dove sarà creata la mailbox string mbxDistinguishedName = "CN=Mailbox Store (BASE),CN=First Storage Group,CN=InformationStore,CN=BASE,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=My Community Development Corporation,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=KCDC,DC=org";   // Istanzia l’utente su cui va creata la MailBox DirectoryEntry user = new DirectoryEntry("LDAP://CN=utente,DC=DOMAIN,DC=local");   // Crea la mailbox CDOEXM.IMailboxStore mailbox;   mailbox = (CDOEXM.IMailboxStore) user.NativeObject; mailbox.CreateMailbox(mbxDistinguishedName);   // Memorizza le modifiche user.CommitChanges();   E’ importante ricordare che in realtà questa operazione, non crea realmente la mailbox, ma rende l’utente in AD "MailBox Enabled". La mailbox verrà realmente...

«aprile»
domlunmarmergiovensab
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011