Go Premium for a chance to win a PS4. Enter to Win


exchange shell and syntax

Posted on 2014-01-14
Medium Priority
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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Take a look at these 6 Outlook Email management tools which can augment the working and performance of Microsoft Outlook to give you a more rewarding emailing experience.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

824 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