exchange shell and syntax

Posted on 2014-01-14
Last Modified: 2014-01-14
firstly, how can you get to the exchange management shell on a 2008 windows server, could you show me with screenshots? i am very new to exchange..

And secondly, I have a few shell commands to run, i.e.

Get-PublicFolderDatabase | Select Name, Identity, MountAtStartup
Get-PublicFolderDatabase| Select Name, Identity, RetainDeletedItemsUntilBackup

I want the output to format as csv, I beleive there is a csv export feature, how could I tweak the above commands to export to csv, i.e. to c:\output\1.csv? Can anyone assist?
Question by:pma111
LVL 13

Accepted Solution

Felix Leven earned 500 total points
ID: 39778715
The shell can be found by Default in your Startmenue called "Exchange Management Shell" or you can create a shortcut yourself:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-E"

Open in new window

Get-PublicFolderDatabase | Select Name, Identity, MountAtStartup | Export-Csv c:\output\1.csv

Open in new window

Get-PublicFolderDatabase| Select Name, Identity, RetainDeletedItemsUntilBackup | Export-Csv c:\output\1.csv

Open in new window


Author Comment

ID: 39778721
many thanks..

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The purpose of this video is to demonstrate how to use PicMonkey software to customize images for a Mailchimp campaign. Picmonkey is free and simple online software which can be used by users who don’t have robust editing software such as Photoshop,…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now