Exchange PowerShell: How to get list of mailboxes, folders, subfolders, items in folder, foldersize programmatically?

One of my customer automated Exchange PowerShell with his .Net application. They had a requirement to enhance the functionality – to get the list of exchange mailboxes, folders and its sub folders, items in folder, foldersize. Finally it needs to be saved in .csv format.  To implement this, we used Get-Mailbox and Get-MailboxFolderStatistics Exchange cmdlets….

3

PowerShell: Determine Version number, build number and Service Pack of Exchange Server

In my earlier article, we learnt how to get the Exchange Server version, version/build number of Exchange 2003 and it’s earlier. In this, we will see how to get these info & couple of additional info in Exchange Server 2007/2010 using Exchange Management Shell and Exchange Management Console. Using Exchange Management Console: To view the…

2

Exchange Server 2007, 2010: How to query user mailboxes, its permissions using Exchange PowerShell?

In Exchange Server 2007/2010, you can use Exchange PowerShell cmdlets (especially using Get-Mailbox, Get-MailboxPermission, Get-ADPermission, Get-MailboxFolderPermission) to get a verity of info. I played with couple of the below in different scenarios and want to share the same with you – so that you can give a shot and make use of. Scenario # 1:…

2

Exchange Management Shell : Changing DisplayName format “LastName, FirstName”

As we know by default the Display Name of Exchange Mailboxes(Exchange Server 2007 SP2) is in the format of “Firstname Lastname”. I want to change this for the couple of existing mailboxes to “Lastname, Firstname” for one my customer – he preferred non-development stuff!! I tried to do the same using the Exchange Management Shell,…


More resources for Exchange Server 2010 Beta

Feature: Exchange Management Shell in Exchange 2010 When we start working with Exchange Server 2010, we have an enhanced Exchange Management Shell, which means more powerful one. As we know the Exchange Management Shell is a powerful command-line management interface; now we can administer every part of Exchange Server 2010, which is built on Windows…

1

Customizing OWA 2007 language settings

With the continuation of the previous blogpost, today we’re going to see how we can use Microsoft Office Outlook Web Access or the Exchange Management Shell to configure language settings for Outlook Web Access in Microsoft Exchange Server 2007. Microsoft have provided various options to customize the OWA pages, contents/images/themes in a simpler way. As…

2

Migrating CDOEXM based custom applications

As you know Collaboration Data Objects for Exchange Management or CDOEXM is used to create applications that manage Exchange servers, databases, public folders, and user mailboxes. It provides the fundamental Component Object Model (COM) classes and interfaces that are used to manage the Exchange store. From Exchange 2007 onwards… From Exchange Server 2007 onwards you…

1

Exchange Server 2007 : Getting Mailbox statistics using C#.Net & Exchange Powershell

In this session, we will have a look about how to get the mailbox statistics information using from Exchange Server 2007 SP1 using C#.Net & Exchange Powershell. I tried the following code to get the mailbox statistics… 1: …. 2: //Create Runspaceconfiguraiton object 3: RunspaceConfiguration config = RunspaceConfiguration.Create(); 4: PSSnapInException snapEx = null; 5:  …


API’s that are not included in Exchange Server 2007 ?

When you migrated from Microsoft Exchange 2000 & 2003, where they provide several API’s that are not included in Microsoft Exchange Server 2007. Please find the following API’s that are not included in the Exchange Server 2007 environment & the recommended technologies to migrate to. APIs that are not included in Exchange 2007 API Status…


Tutorial : Organizational Forms Library – Series # 2

Can we create it programmatically? To create it programmatically using MAPI, we need to make use of CreateFolder(), the MAPI function. It is necessary to have very special privileges (obtained by opening the store with an EntryID created using IExchangeManageStore::CreateStoreEntryID()) to get it to work. Please refer the following KB to create Org. forms library…


Exchange Server 2007 – Help documents

  Microsoft Exchange Server 2007 SP1 Help This download contains a standalone version of Microsoft Exchange Server 2007 SP1 Help.   Microsoft Exchange Server 2007 Service Pack 1 Shell Help This download contains the Microsoft Exchange Server 2007 Service Pack 1 (SP1) version of the Exchange Management Shell Help.

1

Powershell & cmdlet – In a Nutshell – Part 9 – Modifying Transport Agent using Set-TransportAgent cmdlet (Exchange Management Shell)

Modifying Exchange Transport Agent For administer transport agents, we must use the Set-TransportAgent cmdlet (Exchange Management Shell). For its details syntax and parameters, please refer here. The following example shows how the priority of a sample agent for Exchange agent would be modified. You can use the Exchange Management Shell to modify the priority of an existing…

1

Powershell & cmdlet – In a Nutshell – Part 8 – Configure deleted mailbox retention using Set-Mailboxdatabase cmdlet

Now we’ll discuss how to configure the deleted mailbox retention period in Exchange Server 2007 Run the following command in Exchange Management shell,Set-MailboxDatabase dbName -MailboxRetention 32.00:00:00Here,dbname – specifies database name, 32.00:00:00 – specifies the retention period, i.e., the number of days, hours, minutes, and seconds required for it. By default, deleted mailboxes are retained for 30 days before they…

1

Powershell & cmdlet – In a Nutshell – Part 7 – Configure the Pickup directory using Set-TransportServer cmdlet

Find the small article which talks about how to configure the pickup directory in Exchange Server 2007.  Exchange Server 2007 & configuring Pickup directory: Its’ quite interesting to configure the pickup directory in Exchange Server 2007 environment. As we know that the Pickup directory is used by administrators for mail flow testing, or by applications that…

1