37 C
Dubai
Tuesday, May 6, 2025
Home Blog Page 106

How to Migrate Users Across forest (Cross Forest) using ADMT 3.2 with sid and Passwords

Once Trust is in place

Open Administrators Group in the Source Forest , Add Administrator of the Target Forest to acquire proper Permissions

Vice Versa

Open Administrators Group in the Target Forest , Add Administrator of the Source Forest to acquire proper Permissions

otherwise you will end up with Access denied errors while Moving Users back and forth

image

Once permission part is done

We have to configure a Password Export Server in the source domain to allow exporting the passwords to the Target domain

If your Source Domain DC is running a 64 bit Version

Password Export Server version 3.1 (x64)

If your Source Domain DC is running a 32 bit Version

Password Export Server version 3.1 (x86)

Choose Next

image

Before you choose next , We need to create a password Encryption file from the Target Domain

Reference –

Enabling Migration of Passwords

http://technet.microsoft.com/en-us/library/cc974435(v=ws.10).aspx

Open a Command Prompt where ADMT is installed on the Target Domain , Run the Below Command to Create a .pes file

admt key /option:create /sourcedomain:<SourceDomain> /keyfile:<KeyFilePath>

image

Once the File is Created on the Target Domain , Bring the File to the Source domain and Browse for the file

image

image

Click Finish

Reboot the Server to complete the installation

Start the “Password Export Serve Service”

image

Now Open ADMT , Choose User Account Migration Wizard

image

Choose Source Domain and Target domain

image

Now Select users from Domain.

If you want to Choose Custom set of users from a CSV file , See below link

How to Prepare a Include File For ADMT 3.2

image

image

Choose the Target OU

image

Choose Migrate Passwords

image

Choose Target Same as source

Choose Migrate User SIDS to Target Domain

image

Type User name and Password of the Source domain

image

Choose Next

image

Choose Next

image

Choose Next

image

image

Great !!

Now Users with SID and Password have been migrated across forest (Cross forest) Successfully

How to install ADMT 3.2 in Windows Server 2008 R2

Download Active Directory Migration Tool version 3.2

image

Type the Default Instance if you have a SQL Server ,I have the SQL server on DC itself , So I have typed

.\SQLEXPRESS

If you are not aware of SQLEXPRESS , Have the Explained the Steps below to configure it

Only SQLEXPRESS 2005 will work properly if you are planning to Install on DC itself

People who are aware of SQL , Please skip the SQL setup

image

If you don’t have a SQL Server , You can Download

Microsoft SQL Server 2005 Express Edition Service Pack 3

Accept

image

Next

image

Next

image

Next

image

Next

image

Next

image

Install

image

Finish

image

Choose No

image

Then Close

Great !

Now SQL is configured

 

Start  – Administrative Tools –> Active Directory Migration Tool

image

Now ADMT is Ready to Migrate Users

 

Creating a new Active Directory Site Might make your Exchange 2010 stop working

imageIf you have Exchange 2010 in your Site , If you create a new Active Directory site , your Exchange may stop working ,

We will see why ?

Having only the Default-First-Site-Name, You would have not Define the subnet for your site,

If you have only one site , Which is the default website then All the subnet will look into your Default Active Directory site (Default-First-Site-Name)

But if you create a new site then your Exchange won’t know which site to look into , because of the not defined subnets

and Your services may stop and Restarting the server might struck in  “Applying computer settings”

To avoid this situation,Before your Create a new Active Directory site

Define the Subnet for your your Default Active Directory site (Default-First-Site-Name)

image

Now you can type the specific subnet

imageNow your Subnet is defined to your  Default Active Directory site

image

Great !!

Now you can overcome some downtime !!

 

Bulk – Export Mailboxes to PST in Exchange 2010

Its easy to Export a Mailbox to PST using Mailbox Export Request in Exchange 2010

Lets see on how to Export 1 single mailbox to PST in Exchange 2010

To Acquire RBAC Permission

Add “Mailbox Import Export” RoleAssignment to the Admin ,

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

Now Create a Folder , Share it

image

Now Run

New-MailboxExportRequest –Mailbox "MailboxName" -FilePath \\ServerName\PST\MailboxName.pst

How to Export All the Mailboxes to PST

Step 1:

Open Exchange Management Shell

$Export = Get-Mailbox

(Saving to a Variable)

Step 2:

$Export|%{$_|New-MailboxExportRequest -FilePath "\\ServerName\pst\$($_.alias).pst"}

image

How to Export All the Mailboxes using a Specified date

Step 1:

Open Exchange Management Shell

$Export = Get-Mailbox

(Saving to a Variable)

Step 2:

Specifying lesser than (lt) 01-01-2012

$Export|%{$_|New-MailboxExportRequest -ContentFilter {(Received -lt "01/01-2012")} -FilePath "\\ServerName\pst\$($_.alias).pst"}

How to Export All the Mailboxes with Specific folders

Step 1:

Open Exchange Management Shell

$Export = Get-Mailbox

(Saving to a Variable)

Step 2:

Specifying folders Inbox and Sent Items

$Export|%{$_|New-MailboxExportRequest -InclueFolders "#Sentitems#,"#inbox#" -FilePath \\ServerName\pst\$($_.alias).pst}

Will look forward to add more Criteria’s in the future

 

How to Customize RBAC Permissions for “HelpDesk” in Exchange 2010

Role Based Access Control is an Amazing feature in Exchange 2010 , where we can provide a set of permissions to a User and we can customize it widely

Am not going to Explain deep in RBAC , but we can learn how to customize the default role groups

My Default there are 11 Role Groups

image

One of an Best Example is assigning permission to use Discovery Search

https://www.azure365pro.com/deleting-a-specific-email-from-entire-organization-in-exchange-2010-2/

By Default, Administrator is a member of Organization Management , where he gets all the permission .

But if we want to Remove some permission for Helpdesk Admins to do some task , We can customize it.

First Initially , We have to decide what all the permission we got to provide to the Help Desk admin

And what all permission permission we got to remove for the HelpDesk admin

Get-Managementrole will list all the Roles available

image

Lets say Help Desk Engineer Can Create Distribution Groups , Can Create Mailboxes ,Distribution Groups, They Can manage them

But they should not have permissions to remove them or Disable them

Go through the Management Roles listed , We can Find Mail Recipient Creation , Distribution Groups , Mail Recipients Role ,

To Know the ability of a role,  you Can run

Get-ManagementRole "Mail Recipient Creation" | fl Description 
Get-ManagementRole "Distribution Groups" | fl Description 
Get-ManagementRole "Mail Recipients" | fl Description 

image

image

Where We can assign these Management Roles to a Custom Role Group and assign to a Help Desk Engineer , But the problem is they will have the ability to Remove Mailboxes , Remove Distribution Groups as well

So we got to remove those abilities for them ,befor assigning to them

Now we have to find what alll Role Entries (Commands) we have to remove from them , To find what all the commands inside the Management role

You can run

Get-ManagementRoleEntry "Mail Recipient creation\*" | FT -Autosize 
Get-ManagementRoleEntry "Distribution Groups\*" | FT -Autosize 
Get-ManagementRoleEntry "Mail Recipients\*" | FT -Autosize 

image

So i Dont want to Touch the Default Roles , and which is not Recommended too

So first will Create a Copy of the roles and Remove the Commands from the the copy which i have created

New-ManagementRole -Parent "Mail Recipients" -Name "Copy of Mail Recipients"
New-ManagementRole -Parent "Mail Recipient Creation" -Name "Copy of Mail Recipient Creation"
New-ManagementRole -Parent "Distribution Groups" -Name "Copy of Distribution Groups"

Now I have a Copy of it Created

image

Going through the Commands , I found some Potentially risky commands like “Remove-Mailbox , Remove –Distribution Group” where we got to remove from them

Get-ManagementRoleEntry "Copy of Mail Recipient creation\*" | FT -Autosize 
Get-ManagementRoleEntry "Copy of Distribution Groups\*" | FT -Autosize 
Get-ManagementRoleEntry "Copy of Mail Recipients\*" | FT –Autosize 

Removing Commands from the Copy of the Roles which we created

Removing Potential Commands from — Copy of Mail Recipient Creation

Remove-ManagementRoleEntry "Copy of Mail Recipient Creation\Remove-Mailbox" –Confirm:$false 
Remove-ManagementRoleEntry "Copy of Mail Recipient Creation\Remove-MailUser" –Confirm:$false 
Remove-ManagementRoleEntry "Copy of Mail Recipient Creation\Remove-MailContact" –Confirm:$false 

image

image

Removing Potential Commands from — Copy of Mail Recipients

Remove-ManagementRoleEntry "Copy of Mail Recipients\disable-Mailbox" –Confirm:$false 
Remove-ManagementRoleEntry "Copy of Mail Recipients\disable-MailUser" –Confirm:$false 
Remove-ManagementRoleEntry "Copy of Mail Recipients\disable-MailContact" –Confirm:$false 

image

Removing Potential Commands from — Copy of Distribution Groups

Remove-ManagementRoleEntry "Copy of Distribution Groups\Remove-Distributiongroup" –Confirm:$false 
Remove-ManagementRoleEntry "Copy of Distribution Groups\disable-Distributiongroup" –Confirm:$false 

image

Now we are creating a Custom Role Group

New-RoleGroup -Name "Role Group for Help Desk" –Roles “Copy of Mail Recipients","Copy of Mail Recipient Creation","Copy of Distribution Groups" 

image

Now am Adding a Member(Help Desk Engr)  to the Role Group

Add-RoleGroupMember "Role Group for Help Desk" -Member Helpdesk 

image

Refer the below link to add users it bulk :

http://technet.microsoft.com/en-us/library/dd638207

Now Logging into the Server as “Helpdesk”

Making sure is a Domain Admin as well , So log into the server

image

Now you can See Console Looks Different for them

image

Now you can see – Disable and Remove option disappeared

image

Great !! Role Bases Access Control is ready for the Help Desk

 

How to Recreate Corrupted Microsoft Security Groups in Exchange 2010

Some Times Reinstalling Exchange 2010 Corrupts the Security Groups or It will Duplicate the Security Groups.

Creating Console Permission issues or Role may not load properly or User Might get Access Denied Error.

We will learn how to cleanup and recreate Microsoft Exchange Security Groups as a last option.

We will delete all the Security Groups in the Microsoft Exchange Security Groups Container.

image

image

Now Running Setup.com /preparead won’t allow you to recreate it as OtherWellKnownObjects attribute on the Microsoft Exchange Container  will be pointing to Deleted Objects , It has to be Removed

image

It cannot be Removed via Adsiedit

And we got to Use LDP to Clear the attribute

Those who are new to  LDP, Am not able to edit the OtherWellKnownObjects in Adsiedit as Shown Below . So am Using LDP

image

Start –> Run –> LDP

Click Connection – Connect –

image

Click Ok if you running on the Server itself

image

View –> Tree

image

Choose –> Configuration Container

image

Now You won’t be Expand it . Unless you Bind it

Connection –> Bind

image

Double Click on Configuration –> To Expand

Scroll down to Microsoft Exchange Container –> Right Click –> Modify

image

Now we got to Edit OtherWellKnownObject attribute

Attribute – > OtherWellKnownObject

Values –>

Choose Replace

Click On Enter

image

Now Empty Value has been Added –

Click Run

image

Now you could see Other Well known Objects have been Cleared

image

Now Setup.com /preparead is successful

image

Now Security Groups are back

image

Now Console and Exchange Management Shell may not open

Or It may show Partial information.

Because the Role Base Access Control Information is lost as Security Groups have been deleted and Recreated

Showing Partial Information –

image

Or Role May not Load Properly

image

To get the Roles Installed Back for the Users

Add-PSSnapin *Setup 

image

Install-CannedRbacRoleAssignments –InvocationMode Install 

image

Now Exchange Management Console and Exchange Management Shell is back online

image

Now Still you might not be able to Create or Remove are Edit anything in the EMC or EMS

you will get an Error

Active Directory operation failed on DC.CareExchange.in . This error is not retriable. Additional information: Access is denied. Active directory response: 00000005: SecErr: DSID-03151E04, problem 4003 (INSUFF_ACCESS_RIGHTS)

Because the group memberships might have been removed

Add the Exchange Server Computer Account in Exchange Servers Group & Exchange Trusted Subsystem Group

Now you got to reboot the Exchange Server after adding it , To update Group memberships

image image

 

× How can I help you?