[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2014-12-30
3
Medium Priority
?
75 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
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 …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

650 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