Skip to main content

Posts

exchange 2007 top number of mailbox size from Exchange Management shell

Open Exchange Management shell from Exchange server and run below command. Where first N means first n numer mail boxes replace N with number..10 or 20 or 100...etc Get-Mailbox -database DB2 -ResultSize Unlimited| Get-MailboxStatistics | Sort-Object TotalItemSize -descending |Select-Object DisplayName,ItemCount,@{name="MailboxSize";exp={$_.totalitemsize}} -first N

Mailbox export in Exchange 2007

Below video gives complete picture from the start to end process.  http://www.youtube.com/watch?v=0rm1a392ie8 Please find the below procedure to install exchange management tools on your desktop. 1.        Download 32 Bit Microsoft Exchange Server 2007 Management Tools (32-Bit) : Microsoft Exchange Server 2007 Management Tools (32-Bit) http://www.microsoft.com/downloads/details.aspx?FamilyID=6be38633-7248-4532-929b-76e9c677e802&displaylang=en 2. Extract the installation file. 3. Install the following pre-requirements components: a. Microsoft .NET Framework Version 2.0 http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en and the hotfix: Microsoft .NET Framework Update Required http://www.microsoft.com/technet/prodtechnol/exchange/Analyzer/729d1648-ff17-43f9-a1cf-4285a82d4917.mspx?mfr=true b. Microsoft Management Console (MMC) 3.0 Microsoft Management Co...

script to delete files older than x days in windows

Batch File: @echo off :: set folder path set dump_path=Path.... :: set min age of files and folders to delete set max_days=15 :: remove files from %dump_path% forfiles -p %dump_path% -m *.* -d -%max_days% -c "cmd  /c del /q @path" :: remove sub directories from %dump_path% forfiles -p %dump_path% -d -%max_days% -c "cmd /c IF @isdir == TRUE rd /S /Q @path"