1) Import/export the script?
2) Promote a new DC in production, ghost the server, de-promote it, and finally bring back the ghost and apply the domain rename procedure?
There is no single "right" answer to the question of how to clone your AD environment in a test environment. A good place to start is with the CreateXMLFromEnvironment.wsf and CreateEnvironmentFromXML.wsf scripts that come pre-installed with the Group Policy Management Console, which will capture information about organizational units, GPOs, GPO links and security on GPOs. An alternative would be to use a System State backup from a production DC to create a test DC (in connectivity isolation) and refresh the information on it through regularly-scheduled additional restores.
Related Q&A from Laura Hunter
Active Directory expert Laura E. Hunter tells a reader what to keep in mind when deleting subnets associated with sites being removed in an ...continue reading
Active Directory expert Laura E. Hunter explains to a reader what must be done to change the default display specifiers for new users in Active ...continue reading
Active Directory expert Laura E. Hunter offers a tip for shortening client wait times.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.