How to migrate Distribution list from one domain to another within same forest

team,
we are in the process of migrating all users mailbox, DL and contacts from one domain to another within a same forest.
can some one please let me know how can we migrate them without loosing the group membership and exchange attributes.
Kindly help.
Srinivasa K

I ran all of them 
First Command , it works very well and its removed the exchange attribute
$DomCtrlr = (Dir env:Log*).Value.Replace('\','')
Get-MailContact -OrganizationalUnit Contacts -DomainController $DomCtrlr | Export-Csv E:\MailContacts.csv
Get-Contact -OrganizationalUnit Contacts -DomainController $DomCtrlr | Export-Csv E:\UserContacts.csv
Import-Csv MailContacts.csv | Disable-MailContact -DomainController $DomCtrlr
Second command
$DomCtrlr = "DCNAME"
$MailContacts = Import-Csv E:\MailContacts.csv
$UserContacts = Import-Csv E:\UserContacts.csv
after running the above command, I copied below on note pad and saved as .PS1 , as per your advise I make sure that starting with new-mailcontact and below 2 are is same line and Executed the ps1 script.
Scipt rans but didnt give me any error mesage.
ForEach ($Contact in $MailContacts) {
    $UserContacts | ? { $_.SamAccountName -eq $Contact.Alias } | % {
        New-MailContact -DomainController $DomCtrlr -LastName $_.LastName -FirstName $_.FirstName -Alias $_.SamAccountName -DisplayName $_.DisplayName -Name $_.Name -ExternalEmailAddress $Contact.ExternalEmailAddress -OrganizationalUnit
Test_con    }
By Running
$MailContacts : it provided the stored value for users
$UserContacts: it
provided the stored value for users
after runing below in  single notepad as .ps1 , not getting error message , but its not giving any
output nor error.
suspecting something needs to b checked on for loop
ForEach ($Contact in $MailContacts)  {
    $UserContacts | ? { $_.SamAccountName -eq $Contact.Alias } | % {
        $_
Hope this explained clearly.
Srinivasa K

Similar Messages

  • Export and Import a page from one application to another within same WKSPCE

    Hello,
    Can anyone help me out in moving a page from one application to another within the space workspace. I tried to export it and then import the page, but I am not able to do that. I think the problem is with the application IDs.
    Plz help me out with this issue.
    Thanks,
    Orton

    Hi Orton,
    moving a page from one application to another within the space workspace
    This U can get it, through copying the page from one application to another application within the same workspace
    In the top of the page, you have "copy" option.
    regards,
    Kavitha

  • How to migrate ESS job from one instance to another Instance ?

    Hi Experts,
    We have developed some custom ESS jobs in fusion applications. Now we have to migrate newly created ESS jobs to another environment.
    Is there any way like we use to extract ldt in EBS R12.
    Kindly suggest......!
    Thanks,
    Praveen

    Please refer to:
    How to Migrate ESS Job Definitions Using WLST (1941788.1)
    Migrating Ess Job Definitions From One Instance To Another Instance (1442541.1)
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • How to migrate configurator models from one instance to another in R12

    Hi
    I want to migrate models from one instance to another using the Migrate models Program .For this do we need to create a Database link between the two configurator instances .Can anybody detail the steps to be followed

    Sumit,
    I am trying to figure out how to implement copying a quote line from one quote to another. Could you please let me know waht you found out regarding the usage of package. As of now I am only trying it in R11 but I will also need to know how to do it in R12 for future. So could you please tell me how you accomplished it in both releases with probably some sample code.
    Thanks in advance,
    Vinodh Ramadoss

  • Print Layourt Designer how to migrate a report from one SBO to another

    I have written a report on my Test version of SBO and need to migrate it to the customers site but cant see a method of exporting/Importing a User Report
    (I am probably missing something obvious though.....) but would appreciate a prod in the right direction.  thanks

    Hi George,
    There is two ways, you can either copy it over......but sometimes all the alignment goes off.
    Or you can use the query SAP have given in a note. I do not remember the note number. But here is an extract of the note. I use this query often and have kept this extract one side. It only copies the layouts that do not exist in the destination company. Here is the extract.
    An SQL query can be used to copy documents from one database to another, however the following conditions must be met:
    1. Only edited documents with a doccode (the template primery key), which does not exist in the destination database, will be copied.
    2. It is necessary to backup source and destination databases before running the query!!!
    3. Both databases must share the same localization and the same version!!!
    4. Select "Start" -> "Programs" -> "Microsoft SQL Server" -> "Query Analyzer" and run the following query:
    Replace SOURCE with the source database name.
    Replace DEST with the destination database name.
    insert into [DEST].[dbo].[RDOC]
    select [SOURCE].[dbo].[RDOC].*
    from
    [SOURCE].[dbo].[RDOC],[DEST].[dbo].[cinf],[SOURCE].[dbo].[cinf]
    where [DEST].[dbo].[cinf].[lawsset]=[SOURCE].[dbo].[cinf].[lawsset]and [DEST].[dbo].[cinf].[version]=[SOURCE].[dbo].[cinf].[version] and [SOURCE].[dbo].[RDOC].[Doccode]NOT IN (SELECT Doccode from [DEST].[dbo].[RDOC])
    insert into [DEST].[dbo].[RITM]
    select [SOURCE].[dbo].[RITM].*
    from [SOURCE].[dbo].[RITM],[DEST].[dbo].[cinf],[SOURCE].[dbo].[cinf] where [SOURCE].[dbo].[RITM].[Doccode] NOT IN (select Doccode from [DEST].[dbo].[RITM])AND [SOURCE].[dbo].[RITM].[Doccode]IN (SELECT Doccode from [DEST].[dbo].[RDOC])
    The query is also attached to this note!
    Hope this helps.

  • How to migrate "Access Restrictions"  from One Environment to another Env

    Hi ,
    Can anyone suggest regarding the "Access Restrictions" , we need to move the "Access Restrictions"  from one environement to another environment .
    Thanks & Regards
    Venkat.

    hi,
    When using Import wizard,
    while importing Universe, Please check the below option to migrate Access Restrictions.
    "Keep Universe Overloads for imported Users and Groups"
    Regards,
    Vamsee

  • How to migrate pop3 mailbox from one iphone to another iphone

    Guys, it is urgent for me, recently i have bouht a new 6 plus, and currently i am using 5s, my daily business access are go through pop3 mail server, and setup on 5s. now i got lot of sending mail stored on 5s sending box, and it can not SYNC to my desktop outlook. iTunes dont support mailbox backup and restore, is it anyway to solve it?

    This knowledge base article explains the process: http://support.apple.com/kb/HT2109

  • How can I copy settings from one account to another on same iMac?

    A week ago, my Nik plugin to Aperture and Photoshop crashed the these two apps. I created a new account, and now the plugin works without crashing int he new account. i want to transfer all my settings to the new account. How can I do it?

    Create a new folder on the desktop, choose Go to Folder from the Finder's Go menu, provide ~/Library/ as the path, move some of the items inside to that folder, keeping track of what you moved, try the plugin again, and repeat as needed.
    Moving the wrong item to a different user account will transfer the problem.
    (110702)

  • How do I copy music from one library to another on same PC?

    Me and my hubby both have separate itunes libraries on the same computer - is there a way of copying some of the songs from his library onto my library/ipod?
    Thanks in advance for any longed for advice!!
    H

    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597

  • Migrating KMS server from one computer to another

    Hi,
    I would like to know how to migrate the KMS from one server to another. Thanks in advance

    Steps to migrating the KMS:
    1. Uninstall the KMS host key first by running the following command:
    slmgr -upk
    2. Then, install the default kms key by running the following command:
    slmgr /ipk [KMS Client Setup Key]
    The default KMS client setup keys can be found here:
    http://technet.microsoft.com/en-us/library/cc303280.aspx
    3. Delete the record from the DNS:
    Open DNS console:
    Expand _tcp node under the domain.com. There will be a record _VLMCS. Delete this record.
    4. The KMS server is uninstalled.
    5. To install KMS on a new server, enter:
    cscript C:\windows\system32\slmgr.vbs /ipk <KmsKey>
    then to activate the KMS host, enter:
    cscript C:\windows\system32\slmgr.vbs /ato
    6. After activation is complete, restart the Software Licensing Service.
    7. Verify that the record is created for the new server in the DNS.
    To verify that the KMS host is configured correctly, you can check the KMS count to see if it is increasing. Run slmgr.vbs /dli on the KMS host to obtain the current KMS count. You can also check the Key Management Service log in the Applications and Services Logs folder for 12290 events, which records activation requests from KMS clients. Each event displays the name of the computer and the time-stamp of an individual activation request.

  • How can I migrate everything from one account to another on same computer?

    How can I migrate everything from one account to another on same computer?

    Transferring files from one User Account to another

  • How do I transfer my play lists from one pc to another? I can't find import on the new version.

    How do I transfer my play lists from one pc to another? I can't find import on the new version.

    Holtey wrote:
    Not an option.
    Onlly have turn on home sharing or get artwork
    Do ou have the iTunes menus showing across the top of the iTunes window?
    ctrl B

  • How to Migrate VO Extension from One Instance to Other

    Hi,
    How to Migrate VO Extension from One Instance to Other.
    Thanks
    Vishnu

    Move the VO.xml and Class files as usual to other Environment.
    Also move the .jpx of the Project and run the jpx importer.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                               

  • Using i-setup, how to migrate EBS configuration from one Business Group to the other within the instance?

    Using i-setup, how to migrate EBS configuration from one Business Group to the other within the instance?

    Sandeep,
    Yes, I think your command format is not correct.
    Try the one that Rod posted.
    About the note on metalink. It seems that it is under review.
    Here is the basics of the note:
    1. Determine the owner of the workbook. Say UserA.
    2. Open an sqlplus session to the database.
    3. Run the following sql:
    SQL> set heading off
    SQL> set feedback off
    SQL> set echo off
    4. Now spool the result of the following sql to a file.
    SQL> spool c:\exp.bat
    5. Run the sql statement
    NOTE: CHANGE DISCOE_HOME
    SQL>select '<Disco_Home>\discvr4\dis4adm /connect
    EUL_owner_name/passwd@connect_string /export c:\'||rownum||'.eex /workbook "'||
    doc_created_by||'.'||doc_name||'"' from
    SELECT EUL4_DOCUMENTS.DOC_NAME, doc_created_by, NVL(EUL4_EUL_USERS.EU_USERNAME,
    'Document Not Shared') shared_with
    FROM EUL4_ACCESS_PRIVS EUL4_ACCESS_PRIVS, EUL4_DOCUMENTS EUL4_DOCUMENTS,
    EUL4_EUL_USERS EUL4_EUL_USERS
    WHERE ( EUL4_DOCUMENTS.DOC_ID = EUL4_ACCESS_PRIVS.GD_DOC_ID(+) ) AND (
    EUL4_EUL_USERS.EU_ID(+) = EUL4_ACCESS_PRIVS.AP_EU_ID )
    where doc_created_by='UserA'
    where,
    Disco_Home is the Location or Discoverer 4 Home.
    4. SQL> spool off
    5. SQL> set feedback on
    6. Now run the batch command file (exp.bat)
    Regards
    Roelie Viviers

  • How do I copy a list from one site to another that has a column that appends changes to existing text?

    I want to move a list from one SharePoint site to another, within the same collection. I have created a template and included the content but the column that is selected to append changes to existing text, has not copied in all cases, although it has for
    some items.
    I have a limited knowledge so won't be able to implement any solutions that require the use of code.

    Hi,
    According to your post, my understanding is that you wanted to copy a list from one site to another that has a column that appends changes to existing text.
    I recommend to use the custom workflow activity  Copy List Item Extended Activityto
    copy list items and files cross site.
    You can do this with codeless SharePoint Designer workflows as long as you can install the
    Codeplex Custom SharePoint Designer Workflow Activities. 
    These activities are also built-in to SPD2010.
    To install the custom activities, please follow the steps as below:
    Download the solution file form
    Useful Sharepoint Designer Custom Workflow Activities
    Copy the wps file to the Disk C.
    Open the SharePoint 2010 Management Shell.
    Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
    Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
    Open the SharePoint designer, add action from Custom Actions.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • How can I get my custom PS workflows to run correctly when I Retry them after a failure?

    I have some custom PowerShell workflows in place that monitor for status changes to various work items and add Action Log entries as required. As an example one of these workflows monitors for newly created Service Requests and creates an Action Log

  • Verizon Makes $90 screw-up and tells us it's our fault

    I have a family plan with myself, my wife, my mom and dad.  Last December my Dad got a new phone and had it activated at the verizon store.  He also opted for the 6.99 Asurion insurance. After leaving he kept getting calls from people asking for my w

  • "NO_RECEIVER_CASE_BE" error with SOAP Sender assigned to a Business Service

    Hi all, we have a strange error with XI3.0 We created a configuration scenario where the initial step is done by a Business System, that uses a SOAP Sender communication channel to send its request. And this works great when testing it with XMLSpy. B

  • Two times goods receipt is done

    Dear All I am facing one problem ,two times gr is done the same material is done and the material have equipment ( serial number ) is attached. and the serial no profile is having serial no profile and that doesnt allow. and this all happen due to sy

  • Parallel ledger

    Hi, 1. How to configure parallel ledger. I have maintained the steps in the paths.. FA - FA global setting new - Ledger And FA - FA global setting new - Parallel Accounting. Group currency USD - Leading ledger Local currency INR - Non leading ledger.