Wednesday, June 27, 2012

Exchange 2010 Transport Rules

How to hide hard drives in Windows XP/Vista/7

If you want to learn how to hide hard drives in Windows XP/Vista/7 then you've come to the right place. This article explains how to achieve just that.

If you have sensitive or important data stored on a particular disk drive that you don’t want anyone to see, a great way to hide it is to remove the drive letter assigned to a particular mounted volume. With Windows XP,  Windows Vista and Windows 7 you can  hide hard drives easily using nothing more than the Command Prompt. Here's how:

- Click Start >> Run (This brings up the Run dialog box)
- Type cmd and press Enter (This brings up the Windows Command Prompt)
- Type diskpart in the command prompt and press Enter (This launches the Diskpart utility within the Command Prompt window)
- Now type list volume (This displays a list of all mounted volumes on your computer and their associated drive letters)



- Using the above picture as reference, if, for example, you would like to hide drive E, type select volume 6

- Now type remove letter E (Note: This sometime requires a reboot)

Diskpart will now remove the drive letter. The drive will no longer be available via Windows Explorer or My Computer.

Don’t worry though, your data remains safe!

Now, should you want to unhide the drive and make it accessible again, just repeat the above process. But instead of typing remove letter E, type assign letter E

By following the simple process above you will easily learn how to hide hard drives in Windows XP/Vista/7

Friday, June 22, 2012

To check all the mailbox size on a particular Database & export to CSV file on Exchange2010 server

The following article describe how to create Mailboxes size report/s in Exchange 2010.
Step 1:
Open “Exchange Management Shell”.
Step 2:
Use one of the following commands:



To Check all the mailbox size with the no. of Items in mailbox with Send/Receive attachment size in a particular DB & export the report to CSV file, run below mentioned command in EMS;


[PS] C:\Windows\system32>Get-Mailbox -Database "Database Name" | sort-object | Select-Object name,alias,servername,Prohibi
tSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota
,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get
-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}} | Export-Csv C:\output.csv


Get-Mailbox -Database "Mailbox Database 2048287781" | sort-object | Select-Object name,alias,servername,ProhibitSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}} | Export-Csv C:\output.csv


For Example:
Get-Mailbox -Database "DefaultMailboxDB" | sort-object | Select-Object name,alias,servername,ProhibitSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}} | Export-Csv C:\DefaultDBMailbox.csv

Report mailboxes size in the entire Exchange organization:
Get-Mailbox | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount
Get-Mailbox | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount  | Export-CSV C:\mailboxessize.csv
Report mailboxes size in a specific Exchange server:
Get-Mailbox -server servername | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount
Get-Mailbox -server servername | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount  | Export-CSV C:\mailboxessize.csv
Report mailboxes size in a specific Exchange server database:
Get-Mailbox -server -database "Mailbox Database 0154525136" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount
Get-Mailbox -server -database "Mailbox Database 0154525136" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Export-CSV C:\mailboxessize.csv
Note: You can obtain the database name by using the command: Get-MailboxDatabase 
Report specific mailbox size:
Get-Mailbox myaliasname | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount
Get-Mailbox myaliasname | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount  | Export-CSV C:\mailboxessize.csv
Note: Instead of using “myaliasname”, you can use the “Display Name” attribute of the mailbox.

Thanks to Yuval for wonderfull blog with Tips;

http://blogs.microsoft.co.il/blogs/yuval14/archive/2011/06/08/exchange-2010-mailbox-size-report.aspx


http://social.technet.microsoft.com/Forums/pl-PL/exchange2010/thread/82d5d38a-0c13-4c16-b1b0-9999c00d354d

Wednesday, June 20, 2012

How to Easily Export Message Tracking Results in Exchange Server 2007 OR 2010


To track messages like how many mails SEND OR Receive from specific mailbox, we can track
it by running the below command in EMS & export it to .csv file;


Below command is for Receive only, if we want to track for send then we have to change
from "RECEIVE" to "SEND"



get-messagetrackinglog -Sender "anand.sunka@domain.com" -EventID "RECEIVE" -Start
"6/1/2012 3:59:00 PM" -End "6/20/2012 4:09:00 PM" | Select timestamp, eventid, Source,
Messageid, MessageSubject, sender, {$._recipients}, clientip, clienthostname, serverip,
serverhostname, messageinfo | export-csv c:\MsgTrack.csv

Below are the links :

http://blogs.technet.com/b/exchange/archive/2008/12/01/3406581.aspx

http://mouzzamh.wordpress.com/