Solved

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

Posted on 2014-12-30
3
68 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
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 19

Accepted Solution

by:
compdigit44 earned 500 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 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