34 C
Dubai
Wednesday, April 30, 2025
Home Blog Page 108

Installing Exchange 2007 SP3 on Windows Server 2008 R2

Hope Everyone know that Exchange 2007 SP3 can be installed on a Windows Server 2008 R2

Lets see how to do a typical Installation

Prerequisites for Hub , CAS , Mailbox – Typical Installation

———————————

Open Window Power Shell

Import-Module ServerManager
Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy;

image

Good to know –

For Hub

Add-WindowsFeature RSAT-ADDS,Web-Metabase,Web-Lgcy-Mgmt-Console

For CAS

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy

For Mailbox

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-ISAPI-Ext,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Basic-Auth,Web-Windows-Auth;

For unified Messaging

Add-WindowsFeature RSAT-ADDS,Web-Metabase,Web-Lgcy-Mgmt-Console,Desktop-Experience;

For Edge

Add-WindowsFeature RSAT-ADDS,ADLDS;

For CAS and HUB

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy;

—————————————————————————-

Exchange Server 2007 Service Pack 3

Extract it – Run the Setup

image

Choose the Organization Name :

image

Choose Yes , If you have Outlook 2003 , Cause Here where we decide PF database to be created or not.

But anyways if you choose No. It can be created later .

image

Click Install –

image

Great !!

You Installed Exchange 2007 SP3 in W2k8R2

 

Ultimate Guide to Implement Address Book Policies in Exchange 2010 SP2

Provided Step by Step with Screen Shots to Implement Address Book Policies for the Below Scenarios

Scenario 1: Two Separate Companies in One
Exchange Organization

Scenario 2: Two Companies Sharing a CEO
Scenario 3: Educational Institutions.

Reference Link :

http://technet.microsoft.com/en-us/library/hh529948.aspx

For Exchange 2010 –

Download the Address book policies Guide

 

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

How to Implement Address Book Policies in Exchange 2010 SP2 Effectively – Part 3

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

Scenario 3: Education

Another Interesting Scenario is Provided in TechNet

Implementing Address Book Policy in a Educational Organizations

Our Criteria would be

Class A Students won’t see Class B Students

Class A Students will see only Class A teachers

Class B Students will see only Class B teachers

Teachers can view all their Co-teachers , only their Class students and the principal

Principal will See , All Teachers and Students , Parents , Almost Everything

Cause he doesn’t want to be restricted

Adding to it

I have, Co-teachers & Principal

image

Please refer the below link and understand the Scenario1 and Proceed further for a better Understanding

https://www.azure365pro.com/how-to-implement-address-book-policies-in-exchange-2010-sp2-effectively/

Planning for Custom Attributes to meet the above Expectations –

First I would Plan Custom Attributes for the Students –

Segregating ClassA students separately

Customattribute1 = ClassAStudent

image

As similar – Segregating ClassB students separately

Customattribute2 = ClassBStudent

image

Now will segregate the Teachers

All the Teachers am going to use – CustomAttribute3 = Teacher

image

image

As We know already we need to Create 4 things for Every Address Book Policy,

1. Global Address list

2. Address list

3. Rooms list

4. Offline Address book

Now will Create an Address Book Policy for the ClassA students

Going to Set the Criteria whoever has Customattribute1 = ClassAStudent They will be listed in Class A.

1. Global Address list

Creating a Global Address list

Need Exchange Management Shell to create Global Address list ,

Where users with Custom attribute 1 with value ClassAStudent only will show up

New-GlobalAddresslist "ClassA" –ConditionalCustomAttribute1 "ClassAStudent" –IncludedRecipients "AllRecipients"

image

2. Address list

New-Addresslist ClassA-AL –ConditionalCustomAttribute1 "ClassAStudent" –IncludedRecipients "AllRecipients"

image

3. Rooms list

New-AddressList -Name ClassA-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq "ClassAStudent")-and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

image

4. Offline Address book

New-OfflineAddressBook –Name ClassA-OAB –Server "Servername" –Addresslists "ClassA"

Now will Create an Address Book Policy –

New-AddressBookPolicy -Name "ClassA-ABP" -GlobalAddressList "\ClassA" –OfflineAddressBook “\ClassA-OAB”  -RoomList "\ClassA-Rooms"-AddressLists "\ClassA-AL"

imageApplied ClassA-ABP for my ClassAStudents

image

To apply in Bulk for all the Users in a Database

Get-mailbox –Database "ClassA-Database" | set-mailbox –addressbookpolicy ClassA-ABP

Now My Class A Students will See only Class A no one Else

Now Am going to Get the Class A Teacher to Show up

** To remember **  whoever has Customattribute1 = ClassAStudent They will be listed in Class A.

Going to ClassA Teacher and am going to set CustomAttribute1 as ClassAStudent

image

Going to my ClassAStudent1 OWA for Example – Am Seeing my Teachers,ClassAStudents alone

image

We need our Principal to be listed here

To recollect again

** To remember ** whoever has Customattribute1 = ClassAStudent They will be listed in Class A.

Applying Customattribute1 for my Principal

image

Now you can see the principal listed for the Class A Students

image

Now will Create an Address Book Policy for the ClassB students

Going to Set the Criteria whoever has Customattribute2 = ClassBStudent They will be listed in Class B.

1. Global Address list

Creating a Global Address list

Need Exchange Management Shell to create Global Address list ,

Where users with Custom attribute 1 with value ClassBStudent only will show up

New-GlobalAddresslist "ClassB" –ConditionalCustomAttribute2 "ClassBStudent" –IncludedRecipients "AllRecipients"

image

2. Address list

New-Addresslist ClassB-AL –ConditionalCustomAttribute2 "ClassBStudent" –IncludedRecipients "AllRecipients"

image

3. Rooms list

New-AddressList -Name ClassB-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute2 -eq "ClassBStudent")-and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

image

4. Offline Address book

New-OfflineAddressBook –Name ClassB-OAB –Server "Servername" –Addresslists "ClassB"

Now will Create an Address Book Policy –

New-AddressBookPolicy -Name "ClassB-ABP" -GlobalAddressList "\ClassB" –OfflineAddressBook "\ClassB-OAB" -RoomList "\ClassB-Rooms"-AddressLists "\ClassB-AL"

image

Applied ClassB-ABP for my ClassBStudents

image

To apply in Bulk for all the Users in a Database

Get-mailbox –Database “ClassB-Database” | set-mailbox –addressbookpolicy ClassB-ABP

Now My Class B Students will See only Class B no one Else

Now Am going to Get the Class B Teacher to Show up

** To remember ** whoever has Customattribute2 = ClassBStudent They will be listed in Class B.

Going to ClassB Teacher and am going to set CustomAttribute2 as ClassBStudent

image

Going to my ClassBStudent1 OWA for Example – Am Seeing my Teachers,ClassBStudents alone

image

We need our Principal to be listed here

To recollect again

** To remember ** whoever has Customattribute2 = ClassBStudent They will be listed in Class B.

Applying Customattribute2 for my Principal

image

Now you can see the principal listed for the Class B Students

image

Now my Classes are Ready

Now will Create an Address Book Policy for the Class A Teachers

Now my Class A Teachers has to view all the colleagues (All Teachers)

Now my Class A Teachers has to view only ClassA Students

So setting the value like AD objects having value 1 or 3 should be listed for Class A Teachers

Customattribute1 = ClassAStudent  or Customattribute3 = Teacher

So they will see All the Teachers as well as ClassAStudents alone

1. Global Address list

Creating a Global Address list

Need Exchange Management Shell to create Global Address list ,

Where users with Custom attribute 1 or 3 only will show up

Customattribute1 = ClassAStudent or Customattribute3 = Teacher

New-GlobalAddressList -Name "TeacherA" -RecipientFilter {(CustomAttribute1 -eq "ClassAStudent") -or (CustomAttribute3 -eq "Teacher")}

image

2. Address list

New-AddressList -Name "TeacherA-AL" -RecipientFilter {((RecipientType -eq 'UserMailbox') -or (RecipientType -eq "MailUniversalDistributionGroup") -or (RecipientType -eq "DynamicDistributionGroup") -and (CustomAttribute1 -eq "ClassAStudent") -or (CustomAttribute3 -eq "Teacher"))}

image

3. Rooms list

New-AddressList -Name TeacherA-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq "ClassAStudent") –or (Customattribute3 –eq "Teacher") -and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

image

4. Offline Address book

New-OfflineAddressBook –Name TeacherA-OAB –Server “Servername” –Addresslists "TeacherA"

Now will Create an Address Book Policy –

New-AddressBookPolicy -Name "TeacherA-ABP" -GlobalAddressList "\TeacherA" –OfflineAddressBook "\TeacherA-OAB" -RoomList "\TeacherA-Rooms"-AddressLists "\TeacherA-AL”

image

Applied TeacherA-ABP for my ClassATeachers

image

To apply in Bulk for all the Users in a Database

Get-mailbox –Database “TeacherA-Database” | set-mailbox –addressbookpolicy TeacherA-ABP

Now My TeacherA will See his ClassAStudents and Co-Teachers (With Customattribute3) and the Principal (with CustomAttribute1)

image

I hope you got a Better Understanding now

Please redo the Same thing for ClassB Teachers

Now my Class B Teachers has to view all the colleagues (All Teachers)

Now my Class B Teachers has to view only ClassB Students

So setting the value like AD objects having value 2 or 3 should be listed for Class B Teachers

Customattribute2 = ClassBStudent or Customattribute3 = Teacher

So they will see All the Teachers as well as ClassBStudents alone

Copy the Same Commands above and Replace Customattribute1 as Customattribute2 = ClassBstudent

Coming to the Last

By Principal doesn’t need any Address book policy Cause he has to see everything.

Great !

If you Understood the Above scenario

You are the Master in Address Book Policies I swear

Still We have more complex Scenarios but we can accomplish 99% using above !!

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

How to Implement Address Book Policies in Exchange 2010 SP2 Effectively – Part 2

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

Scenario 2: Two Companies Sharing a CEO

This is little tricky to understand but simple to do

In this scenario we have Two Organizations and One CEO

Where ORGA users should not see ORGB Users in their Global Address list

But CEO should see both the Organization in his GAL

And CEO should be listed for Both of the Organizations

or

Some times IT team will remain the same for both the organizations A & B

or

Headquarters will have own Employees where they will manage two different Organizations A& B

image

This can be used in scenarios like above

Please refer the below link and have 2 organizations created as explained in Scenario1 because

the initial steps are very much the same

https://www.azure365pro.com/how-to-implement-address-book-policies-in-exchange-2010-sp2-effectively/

Caution – Please Read through the above link and Proceed further for a better Understanding

For Organization A, I will use Custom attribute1

Custom attribute1 = ORGA

For Organization B, I will use Custom attribute2

Custom attribute2 = ORGB

Now I won’t apply Any Address book policy because my CEO doesn’t want to be restricted

And he should see all the Users in the Whole Organization

Note – He will be looking at the Default Global Address list

But my CEO has to be listed in

ORGA and ORG B – Global Address list

Now you must understand what the criteria we set for ORG A

Any user who has Custom attribute1 = ORGA will be listed in ORGA’s Global Address list

Now I will Set the Customattribute1 = OrgA for my CEO

Get-mailbox CEO | set-mailbox –customattribute1 ORGA

Now my CEO will be Listed in Organization A  , Global Address list , OAB , Address list

As Similar

To have my CEO listed in Organization B

Now I will Set the Customattribute2 = OrgB for my CEO

Get-mailbox CEO | set-mailbox –customattribute2 ORGB

Now my CEO will be Listed in Organization B’s  Global Address list , OAB , Address list as well

Great !!

You Learned how to Implement ABP in Shared CEO.

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

How to Implement Address Book Policies in Exchange 2010 SP2 Effectively

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

In Layman’s Term Every Department will See their own Global Address list

Commercial GAL segregation wasn’t been Supported in Exchange 2003 and Exchange 2007

It was supported in HMC 4.5 in Exchange 2007, Where you got to buy a license for it separately

In Exchange 2007 only Internal GAL segregation was supported as per the white paper

http://technet.microsoft.com/en-us/library/bb936719(v=exchg.80).aspx

In spite of more complications

Exchange 2010 Hosting was introduced But No Upgrade will be provided by Microsoft

http://blogs.technet.com/b/exchange/archive/2011/10/13/future-of-hosting-mode.aspx

Now Exchange 2010 SP2 or later is the one of the Best solution for GAL segregation commercially and internally which is more efficient and easy it implement.You need to Perform Some Check Lists before going into implementation of Address Book Policies

1. Address book Policies will work only on Exchange 2010 Service Pack 2 or later.

2. Exchange 2010 should not be installed on a GC or DC , Especially Client Access Server

(Address book policies won’t work for Outlook but It will work for OWA alone,)

3.Any Client Device or Client Software access Active Directory directly  for Directory Access then ABP won’t work Like , Outlook is hard coded to GC & Entourage 2008

4. Outlook clients should be at least – Outlook 2007, Outlook 2010

Outlook 2003 with Latest Service pack does recognize Address book policies but we might face little complications , its my personal experience ,Like , login credentials should be the exact same as the Email Credential

Those are the most important Check lists before you going to implement it

Now will Explain how to Deploy  Address book policies in Different Scenarios as per the TechNet

Before Getting into Address book Policies we should first plan how we are going to Segregate the users

There are Various filters you can use to segregate users ,

Refer Link – http://technet.microsoft.com/en-us/library/bb738157%28EXCHG.80%29.aspx

But we have something called Custom Attributes

We have 14 Custom attributes where we can use to Segregate users

Personally , Segregation is much more easier and Easily manageable using Custom attributes

In Simple Words Experts Prefer Custom Attributes

Now will explain how to segregate users in the below scenario

Scenario 1: Two Separate Companies in One Exchange Organization

 

image

First we will plan to segregate the Users

For Organization A , I will use Custom attribute1

Custom attribute1 = OrgA

For Organization B ,  I will use Custom attribute2

Custom attribute2 = OrgB

We got to Create a Separate Address book policy for Every Organization.

Organization A people should not see Organization B People in their Global Address list

image

We got to Create 4 things for the Organizations to Implement Address Book Policies

1. Global Address list

2. Address list

3. Rooms list

4. Offline Address book

Once we create that we can Assign it to the Users , Every User can have only one Address book policy.

1. Creating a Global Address list

Need Exchange Management Shell to create Global Address list ,

Where users with Custom attribute 1 with value ORGA , Only they will show up in the Global Address list

New-GlobalAddresslist "Organization A" –ConditionalCustomAttribute1 "OrgA" –IncludedRecipients "AllRecipients"

image

2 . Creating a Address list

Where users with Custom attribute 1 with value ORGA , Only they will show up in the Address list

image

Creating a New Address list for ORGA users

image

Setting the Domain as Default Domain

image

Setting the Custom Attribute1 value as ORGA

image

image

Now Address List have been Created Successfully.

3. Creating a Rooms list

New-AddressList -Name ORGA-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq "ORGA")-and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

image

4. Creating Offline Address book

Have a keen look at it , Am not using GUI , Because I want to have the users see the New GAL which I have created for Organization A

Using GUI , I won’t have an option to add the New GAL created

New-OfflineAddressBook -Name "ORGA-OAB" -AddressLists "Organization A"

Created Offline address book Successfully

Am not going to use PF distribution in the OAB properties in the GUI  cause there is no Outlook 2003 clients.

If you still have it , Go ahead and check that option , Make sure you have a PF database

image

Now Going to Create an Address book Policy for Organization A users

image

image

Created an Address book policy successfully !!

Now will Learn how to Apply Custom attributes for Users and other Active Directory objects

Open Exchange Management Console – Recipient Configuration – Mailbox – Properties of User Mailbox

You can have the Custom Attribute 1 Value Set for One User for Testing Purposes

image

Or

You can run in Exchange Management Shell

Get-mailbox "User1" | Set-mailbox –customattribute1 "ORGA"

To apply for all the mailboxes –

Get-mailbox | Set-mailbox –customattribute1 "ORGA"

To apply for the Users in a Specific Database –

Get-mailbox –database "Database Name" | Set-mailbox –customattribute1 "ORGA"

Example –

Allocated OrganizationA users  in ORGA-Database

Applying the Custom Attribute in bulk for ORGA users

image

To Apply for one Distribution group –

Get-DistributionGroup "Group1" | Set-Distributiongroup –customattribute1 "ORGA"

To Apply for one Dynamic Distribution Group –

Get-DynamicDistributionGroup "Group1" | Set-Distributiongroup –customattribute1 "ORGA"

Now to View and Understand Better – Click on View – Add/Remove Columns

image

Choose Custom Attributes which you want to view in Recipient Configuration

image

Now you can see the Custom Attribute Values to the Assigned Users

image

Now we can Apply Address book Policy for a Specific User

Exchange Management Console – Recipient Configuration – Mailbox – Properties of User Mailbox – Mailbox Settings – Address Book Policy

image

To apply in Bulk for all the Users in a Database

Get-mailbox –Database "Database Name" | set-mailbox –addressbookpolicy ORGA-ABP

image

Now Logging into OWA as Test1-ORGA  am seeing ORGA users alone in the Global Address list

image

Now Logging into Outlook as Test1-ORGA am seeing ORGA users alone in the Offline Address book

image

Now Coming in to Email Addresses for the organizations

If you are planning to Give Different Domain Names for this Organizations

Custom attributes will make things Simple for us

First we will Create a Accepted Domain for ORGA –

image

image

Clicking on New will get the Accepted Domain Ready

Now will create a Email Address Policy where it will Stamp only for ORGA users

image

image

Now stamping Email Address for only ORGA users, CustomAttribute1 – ORGA

image

Now Choosing the Accepted Domain –

image

image

image

Now you can see that our OrgA users are Stamped with ORGA.com

image

Great !!

Now ORGA is Ready

Lets make the ORGB ready – Its just the same thing but am going to use CustomAttribute2 as ORGB and going to use Commands as you are familiar now

As We know already we need to Create 4 things for an Organization to Implement Address Book Policies

1. Global Address list

2. Address list

3. Rooms list

4. Offline Address book

1. Global Address list

Creating a Global Address list

Need Exchange Management Shell to create Global Address list ,

Where users with Custom attribute 1 with value ORGA only will show up

New-GlobalAddresslist "Organization B" –ConditionalCustomAttribute2 "OrgB" –IncludedRecipients "AllRecipients"

image

2. Address list

New-Addresslist ORGB-AL –ConditionalCustomattribute2 ORGB –IncludedRecipients "AllRecipients"

image

3. Rooms list

New-AddressList -Name ORGB-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute2 -eq "ORGB")-and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

image

4. Offline Address book

New-OfflineAddressBook -Name "ORGB-OAB" -AddressLists "Organization B"

Now will Create an Address Book Policy –

New-AddressBookPolicy -Name "ORGB-ABP" -AddressLists "\ORGB-AL" -OfflineAddressBook \ORGB-OAB -GlobalAddressList "\Organization B" -RoomList "\ORGB-Rooms"

image

To apply in Bulk for all the Users in a Database –

Get-mailbox –Database "ORGB-Database" | set-mailbox –addressbookpolicy ORGB-ABP

image

Now Login into Outlook web app as Test1-ORGB am seeing ORGB users alone in the Global Address list

image

Now Logging into Outlook as Test1-ORGB am seeing ORGB users alone in the Offline Address book

image

New-AcceptedDomain –name “ORGB.com” –DomainName “ORGB.com” –DomainType “Authoritative”

image

Now Creating an Email Address Policy

image

image

image

Great !

Now Both the Organizations are Ready

And They have been Segregated with different GlobalAddresslist

Will Get Back with More Interesting Scenarios !!

New Series Available for Exchange 2010/2013/2016 – Office365  –

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 2

How to Implement Address Book Policies in Office 365/Exchange 2013/2016 Effectively – Part 3

Deleting a Specific Email from Entire Organization in Exchange 2010

Updated – Supports Exchange 2010/2013/2016 and Office365

There are many scenarios where we need to get rid of some Emails from the whole server

1. Virus

2.Confidential Email sent wrongly – Got to remove it

3. Need to remove a Email with Specific subject from all the mailboxes

Exchange 2010 has Good features on Searching it and Remove it .

So Will Learn how to do that.

For a User to Execute this commands , he needs specific permissions like he should be a member of Discovery Management role and he should be member of Mailbox Import Export

By Default, Administrator is not a member these roles

Use Exchange Management Shell

Replace the User Name with the Person whom you want to give access to Search and delete

Add-RoleGroupMember "Discovery Management" -Member "User Name"

or

You can use GUI or Shell, Adding the Discovery Management Role via GUI is much easier.

image

Login with the Exchange Control Panel URL below –

image

Login with Admin Credentials –

image

Double Click on Discovery Management and Add Administrator as a member of Discovery Management and Save it

image

image

===============

To Add a User in Mailbox Import Export Role – Run in Exchange Management Shell

New-Managementroleassignment –Role "Mailbox Import Export" –User "Administrator"

image

===========

Close and Reopen the Exchange Mangement Shell – so that the new commands will start working

===========

Now Before Deleting in Bulk , We can use a log only switch to verify how many Mails we are going to delete

and to verify the we are going to delete the right one

Get-mailbox | search-mailbox –searchquery "Subject:'virus'" –Logonly –Targetmailbox administrator –Targetfolder Inbox

Now this will show how many mailboxes have this content

image

A mail will be generated to Administrators inbox with Item Count As shown below —

image

=======

Now we will go ahead and delete it

Get-mailbox | search-mailbox –searchquery "Subject:'virus'" –DeleteContent

image

Before — From All the Mailboxes

image

Now its gone from All the mailboxes

image

Reference link –

http://technet.microsoft.com/en-us/library/dd298173.aspx

Hope it helped you to understand better !!

If you feel its too confusing –  Check out the Automated Script to do these tasks for you

Discovery Search Simplified Script to Delete a Specific Email and other Tasks – Exchange 2010

 

× How can I help you?