Microsoft KB Archive/244964

= %UserFirstName% and %UserLastName% Variables Are Not Resolved in Remote Installation Services Template =

Article ID: 244964

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q244964



SYMPTOMS
When a user logs on using the Client Installation Wizard (CIW), the %UserFirstName% and %UserLastName% variables may not be resolved in the Remote Installation Services (RIS) template file (*.sif) if either of the following conditions is true:
 * The RIS server is in a different forest than the user account (explicit trust exists between the two forests).
 * The user account is located in a Microsoft Windows NT 4.0 domain (trust is set up between the two domains/forest).

The variables are set to "" (blank), which causes the GUI-mode phase of installation to stop, and the user is prompted to type information for these variables.



CAUSE
This behavior occurs if the user account is in another forest (this can also be a Windows NT 4.0 domain).

When a user account is in another forest, the Lightweight Directory Access Protocol (LDAP) query for the account's first and last name is unsuccessful. Instead of leaving FullName = parameter set to the %UserFirstName% and %UserLastName% variables (which may cause problems with some program installation routines), this field is left blank.



RESOLUTION
To work around this behavior, create a CIW screen that prompts the user for this information and then places the information in the template file (*.sif). When users select an image they want to install, the Oschoice.osc file is active. The Oschoice.osc file then calls the Warning.osc file, which displays a message to the user stating that the drive is going to be reformatted during this process. A good place to insert the new screen is in between the Oschoice.osc and Warning.osc screens.

To create the new screen, use the following steps:

NOTE: The CIW screens for a specific RIS server are located on the volume that contains the images in the RemoteInstall\OSchooser\ folder.   Modify the Oschoice.osc file so it calls the new screen (User-Name.osc), as shown in the following example: Use the arrow keys to select one of the following operating systems:    %OPTIONS%    Create the User-name.osc file so it looks similar to the following example:  Client Installation Wizard UserInfo</TITLE> <FOOTER> [ENTER] continue     [ESC] clear     [F1] help     [F3] restart computer</FOOTER> <META KEY=F3 ACTION="REBOOT"> <META KEY=F1 HREF="Reboot"> <META KEY=ESC HREF="Reboot"> <BODY left=5 right=75>

Please type in your First and Last Name in the space provided below. If correct name is shown Below, you can hit to continue.

<FORM ACTION="Warning"> &nbsp&nbspUser First name: <INPUT NAME="MyFullname" VALUE="%USERFIRSTNAME% %USERLASTNAME%" MAXLENGTH=255> </FORM>

Press the TAB key to move between the fields. </BODY> </OSCML> NOTE: In the new file, make sure the "FORM ACTION =" statement references "Warning" so that upon completion, the warning screen is displayed. </li> Locate the RIS template file in the RemoteInstall\Setup\ \English\Images\ \I386\Templates folder.</li> Change the FullName = "%UserFirstName% %UserLastName%" parameter to Fullname = "%MyFullName%". This is the name of the variable used to hold the information typed in User-name.osc screen.</li></ol>

If you use this method, when a user logs on with an account in the same forest as the RIS server, his or her user name information is resolved and is displayed in the User-name.osc screen. The user simply presses ENTER to continue. Users that log on with accounts outside of the forest have an opportunity to type this information early in the Setup process and not be prompted for it during GUI-mode Setup.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in Microsoft Windows 2000.

Additional query words: ds

Keywords: kbbug kbenv kbpending kbui KB244964

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.