This blog is dedicated to Ms Exchange 2007 , Active Directory , MSCS Services articles and demos , Its all about Microsoft Exchange 2007 .

16th
FEB

How to get Mailbox Size in Exchange 2007

Posted by under Exchange Management Shell

In Exchange 2007 , You can get mailbox size using different Exchange cmdlets ,

To get mailbox size for individual user. You can use following command

Get-MailboxStatistics -Identity UserSamAccountName

Here is Output.

AssociatedItemCount     : 71
DeletedItemCount          : 29
DisconnectDate             :
DisplayName                 : xxxxxxxxxxxx
ItemCount                     : 5485
LastLoggedOnUserAccount : Domain\UserName
LastLogoffTime          :
LastLogonTime           : 2/4/2009 9:23:02 AM
LegacyDN                : /O=xxxxx/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIB
3SPDLT)/CN=RECIPIENTS/CN=xxxx
MailboxGuid             : f291a2e9-e123-4f2a-be4d-ec0349c54a10
ObjectClass             : Mailbox
StorageLimitStatus      : BelowLimit
TotalDeletedItemSize    : 2205239B
TotalItemSize           : 463667583B
Database                : xxxxx\xxxxx\xxxxxx
ServerName              : xxxxxx
StorageGroupName        : xxxxxx
DatabaseName            : xxxxxxx
Identity                : f291a2e9-e123-4f2a-be4d-ec0349c54a10
IsValid                 : True
OriginatingServer       : xxxxxx.xxx.xxx

You can see the size of mailbox in bytes , You can convert in Megabytes or Gbs

To Get Mailbox size for multiple mailboxes , You can use the following Powershell cmdlet.

Get-MailboxStatistics |where {$_.TotalItemSize -gt 100MB} | sort $_.TotalItemSize |FT DisplayName,ItemCount,TotalItemSize >c:\size.txt

The above command will create a file with output containing all users accounts having mailbox size greater than 100MB.


12th
FEB

How to assign Domain Joining rights to a normal user

Posted by under Active Directory

In active directory by default “Account Operators” have domain joining  rights to workstation but if you dont want to add a user in “Account Operator” group then you can assign domain joinging rights to a normal user with following procedure.

1. Click Start, click Run, type dsa.msc, and then click OK.
2. In the task pane, expand the domain node.
3. Locate and right-click the OU that you want to modify, and then click
Delegate Control.
4. In the Delegation of Control Wizard, click Next.
5. Click Add to add a specific user or a specific group to the Selected users
and groups list, and then click Next.
6. In the Tasks to Delegate page, click Create a custom task to delegate,
and then click Next.
7. Click Only the following objects in the folder, and then from the list,
click to select the following check boxes: . Computer objects
. Create selected objects in this folder
. Delete selected objects in this folder

8. Click Next.
9. In the Permissions list, click to select the following check boxes:. Reset
Password
. Validated write to DNS host name
. Read and write Account Restrictions
. Validated write to service principal name

10. Click Next, and then click Finish.
11. Close the “Active Directory Users and Computers” MMC snap-in.