Export (0) Print
Expand All
2 out of 7 rated this helpful - Rate this topic

How to Configure Guest Operating System Profile Scripts

Whether you create a stand-alone guest operating system profile, modify an existing stand-alone operating system profile, or create the profile while running the New Template Wizard, you can use the following procedure to specify scripts for an answer file and to specify [GUIRunOnce] commands (defined later) to run on virtual machines created by using this guest operating system profile.

Before You Start

The following procedure assumes one of the following:

  • You are creating a new stand-alone guest operating system profile and are configuring the Guest OS tab.
  • You are configuring guest operating system profile settings on the Guest Operating System page of the New Template Wizard.
  • You are configuring the properties of an existing stand-alone guest operating system profile on its Guest OS tab.
To configure Scripts settings on a guest operating system profile
  1. Under Scripts (on the Guest OS tab of a stand-alone guest operating system profile or on the Guest Operating System page in the New Template Wizard), configure one or both of the following options:

    1. If you want to attach a Sysprep script to this guest operating system profile, click Answer File in the left pane, and then, in the results pane, specify a value for the Sysprep script field. The Sysprep script you choose is a script file stored on in a library share on a Virtual Machine Manager library server that you want to use as the Sysprep.inf file to customize virtual machines.
      To select a Sysprep script file, click Browse to open the Select sysprep.inf script dialog box, and then select the script. If the Virtual Machine Manager library contains a large number of scripts, use one of the following fields to find the script you want:
      Library group:
      If the library has more than one library group, you can use the Library group field to select a specific library group so that you can view only scripts in that library group and then select the one you want.
      Look for:
      If your library contains a large number of scripts, you can type all or part of the script name in this field to display only scripts whose name includes the string that you type.
      Group by:
      If your library contains a large number of scripts, you can select Type, Owner, or Operating System from the Group by drop-down list box to sort the list of scripts by one of those categories.
      After you select the script you want, click OK to return to the guest operating system profile screen.
    2. If you want to specify one or more commands to run the first time a user logs on to a virtual machine, click [GUIRunOnce] Commands in the left pane. In the results pane, type a command that you want to add in the Command to add field, and then click Add. This action adds the command to the [GuiRunOnce] section of the SysPrep.inf file.
      The [GuiRunOnce] section contains a list of commands (separated by commas) that run the first time a user logs on to a virtual machine after Setup runs.
      Repeat this step if you want to add additional commands.
  2. To save the settings, do one of the following:

    Option 1: If this guest operating system profile is a new or existing stand-alone profile, click Apply to save the settings.

    Option 2: If this guest operating system profile is on the Guest Operating System page of the New Template Wizard (and you have completed any other settings you want to configure on this profile), click Next to save the settings and continue to the next page. Alternatively, to save your settings not only in this wizard but also as a stand-alone profile, click Save Profile, type a name in the Name field on the General tab (and, optionally, change any other settings); click Apply, click OK to return to the Guest Operating System page; click Next to continue to the next wizard page, and then complete the wizard as usual.

    Option 3: If this guest operating system profile is on the properties page of an existing template, click Apply to save the settings.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.