Solved

exchange shell and syntax

Posted on 2014-01-14
2
250 Views
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?
0
Comment
Question by:pma111
2 Comments
 
LVL 13

Accepted Solution

by:
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

0
 
LVL 3

Author Comment

by:pma111
ID: 39778721
many thanks..
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

770 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