Verify the migration

Follow these steps to verify that you migrated the scripts, tools, and files correctly.

To verify the scripts, tools, and files migration

  1. Rename the original copies of the scripts, tools, and files that you copied to make sure that you are using the new copies. The easiest way to do this is to change the names of the shared folders that contain the files (instead of renaming the files).

  2. Determine a computer and user pair that you know has at least one of the following scripts: logon, logoff, startup, or shutdown. Select a computer that you can restart with minimal impact to network services, such as a spare server. For instance, in our adventure-works.com example, we might select adventure-works-vpn as the server because we know that a policy setting is applied to that computer, which specifies a logon script for the user named adventure-works user. In this example, our computer and user pair would be adventure-works-vpn and adventure-works user.

  3. If you recently updated a policy setting or user object, wait 15 minutes before you attempt these verification steps to ensure that the changes have been replicated.

  4. Restart the computer that you selected.

  5. Log on to the computer that you selected with the user account you selected. If the script that applies to this computer and user pair is a logoff or shutdown script, log off or shut down as appropriate.

  6. Verify that your scripts executed. If you cannot determine that they are functioning as expected, consider one of these alternatives:

    • Add a line to a script that you moved to create a temporary file. Repeat the previous procedure and check for the existence of the temporary file.

    • Create a new policy setting to apply to this computer or modify an existing GPO to display the script commands as they run (see following instructions).

To create or modify a GPO to make scripts visible

  1. To display the commands in logoff or logon scripts: In Group Policy Management Editor, expand User Configuration, expand Policies, expand Administrative Templates, expand System, and expand Scripts. Then enable the following two settings: Run logoff scripts visible and Run logon scripts visible.

    –or–

  2. To display the commands in startup or shutdown scripts: Expand Computer Configuration, expand Policies, expand Administrative Templates, expand System, and expand Scripts. Then enable the following two settings: Run shutdown scripts visible and Run startup scripts visible.

After you have verified that the migration was successful, you can delete your original copy of the scripts and the tools and files that you copied.