Solved

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

Posted on 2014-12-30
3
63 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
  • 2
3 Comments
 
LVL 19

Expert Comment

by:compdigit44
Comment Utility
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
Comment Utility
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 19

Accepted Solution

by:
compdigit44 earned 500 total points
Comment Utility
I believe he is referring to the migrationtable switch...

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now