?
Solved

How to update migtable for over 1000 GPOs. Exporting GPOs to test lab

Posted on 2014-12-30
3
Medium Priority
?
73 Views
Last Modified: 2015-01-22
Hello,
I am using the following script to export GPOs from the production environment and import them into the test lab environment.
https://gallery.technet.microsoft.com/Migrate-Group-Policy-2b5067d8

My test lab forest and domains are different from production environment:

Production environment domain name: corp.condoso.com
Test lab domain name: corpqa.condoso.com (only two letters difference)

I tested this script in the lab by importing and exporting GPOs to the same domain name and GPOs were successfully recreated and linked!! But when I did export of the production domain which is different name, I was not successful in linking GPOs. I am getting this error with link path to the production domain. Of course the name as I mentioned is different from the lab and I think that's why it is failing.

Error: gPLink path does not exist .....path

Could you please advise on the easiest  approach to get all those links pathes updated. Maybe a switch in the script to automatically translate from corp.domain.com to corpqa.domain.com? Or how to export the MigTable with the switch and then do a replace for all domains?? That script didn't export the MigTable. I have a sample MigTable but don't know what to do with it. I also tried two other Microsoft scripts but could not make them work at all - as I am beginner with powershell. The script that I posted here was the only script I could make it work.

Thank you so much!
0
Comment
Question by:creative555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Expert Comment

by:compdigit44
ID: 40529614
The VBScript you reference does appear to do what you are looking for. Did you double check your reference CSV file to make sure all fields are correct?

You can upload you CSV if you like so we can help you further review things..
0
 

Author Comment

by:creative555
ID: 40532451
Yes. I see....

I am reading the following. It says that he left out this option to use migtable....what is this switch and how to use it?

Below is from the link:
Import-GPO has a switch to use a migration table, but it forces the option from the GUI which requires all accounts to be in the migration table.  I left this one as-is.  You can work around this by adjusting the migration table or fudging accounts
0
 
LVL 20

Accepted Solution

by:
compdigit44 earned 2000 total points
ID: 40534572
I believe he is referring to the migrationtable switch...

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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question