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
Solved

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

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as 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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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