You can configure Recovery Manager for Active Directory to automatically run your custom scripts on the Recovery Manager for Active Directory computer before, after, or during the recovery operation.
Recovery Manager for Active Directory is supplied with a Microsoft Windows Script (.wsf) file serving as a template where you can insert your custom scripts written in the VBScript or JScript language. The file name is ConsoleSideScripting.wsf, and you can find it in the Recovery Manager for Active Directory installation folder (by default, this is %ProgramFiles%\Quest\Recovery Manager for Active Directory).
The .wsf file has a number of XML elements where you can insert your scripts. Each XML element in the .wsf file provides a description explaining when the script inserted that element will run. Depending on where you inserted your script, it will run:
Before the recovery operation starts in the current project.
Each time before the restore from backup operation starts on a domain controller in the current project.
After the restore from backup operation completes on all domain controllers in the current project.
Before the reinstall Active Directory operation starts in the current project.
Each time before the reinstall Active Directory operation starts on a domain controller in the current project.
Each time the reinstall Active Directory operation completes on a domain controller in the current project.
After the recovery operation completes in the current project.
Locate the file ConsoleSideScripting.wsf in the Recovery Manager for Active Directory installation folder, and open the file in a text editor.
In the file, read the descriptions provided for the XML elements to identify the ones where you want to insert your script, then insert your script as appropriate.
Open the recovery project you created for your environment. For more information, see Opening a recovery project.
Use the Active Directory logs to determine the forest failure date.
Select appropriate backups for the domain controllers in your project. Make sure you use backups that were created before the point in time when the forest failure occurred. For more information on how to select backups for the recovery, see Selecting backups for recovery.
Verify the settings specified in your recovery project. For more information, see Specifying recovery project settings.
Verify the recovery settings specified for each domain controller in your recovery project:
Use the list of domain controllers in the Forest Recovery Console to select the domain controller whose settings you want to verify.
Open the General tab, and then verify the specified recovery settings. If necessary, adjust the settings as needed.
Repeat these steps for each domain controller in the project.
For more information about forest recovery approaches, see Forest recovery approaches.
On the toolbar, click Start Recovery to start the recovery operation on your project.
Before starting a forest recovery, the settings verification must be successfully passed. For more information, see Verifying recovery project settings.
After you start the recovery operation on your project, you can reset the password for users in the following privileged groups on the Reset Passwords step of the wizard. The password resetting option is available only for Forest Recovery and Domain Recovery modes. For more information about privileged groups, refer this link.
Group Policy Creator Owners
The Domain User Name setting specified on the General tab is excluded from password resetting.
The groups above are also listed in order of priority, from highest to lowest, for users belonging to more than one group, or a nested group to obtain the new password.
A user belongs to more than one group: The password with the highest priority will be assigned to the user.
A user belongs to a group nested in another one, and so on: The password with the highest priority of all groups in the nested structure will be assigned to the user.
Make sure the new passwords meet your domain password policies, otherwise passwords will not be reset successfully.
Resetting password also enables the account setting "User must change password at next logon". This means users must enter and change the new password the next time they log in.
The account setting "User must change password at next logon" will not be enabled for the users who have the setting "Password never expires" enabled.
While performing a forest recovery operation, you can use the Forest Recovery Console to monitor the recovery progress of each domain controller in the project.
In the Forest Recovery Console, use the list of domain controllers to select the domain controller whose recovery progress you want to view.
Open the Progress tab to view the recovery operation progress.
Before you start recovering your Active Directory forest, you can generate and view a recovery plan for the recovery project. The recovery plan reflects the settings specified in your recovery project. For example, you can generate and view the recovery plan after making some changes to the recovery project settings to identify whether these changes will have the effect you want.
Recovery project plan shows the details of each Active Directory domain and site included in your recovery project, such as the total number of domain controllers, the number of domain controllers to be recovered, and the number of domain controllers to be removed from Active Directory during the recovery.
For each domain controller, the recovery plan shows the following:
Currently selected recovery method.
DNS servers used by the domain controller before the recovery.
Current FSMO roles.
Whether or not the domain controller to be recovered is a global catalog server.
Applicable recovery alerts and pauses.
Start the Forest Recovery Console.
On the menu bar, click View | Recovery Plan.
To view detailed information about a particular recovery method (that is, the recovery stages and steps the related domain controllers will go through), click the name of that method.
You can use the toolbar in the report window to print or export the recovery plan to a preferred format.