Help and Support
 

powered byLive Search

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

Article ID:244964
Last Review:March 1, 2007
Revision:2.2
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.

Back to the top

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.

Back to the top

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\Language folder.
1.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:
<P left=8>
<FORM ACTION="User-name">
<SELECT NAME="SIF" SIZE=12>
%OPTIONS%
</SELECT>
					
2.Create the User-name.osc file so it looks similar to the following example:
<OSCML>
<TITLE>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 <enter> 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.
3.Locate the RIS template file in the RemoteInstall\Setup\language\English\Images\Directoryname\I386\Templates folder.
4.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.
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.

Back to the top

STATUS

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

Back to the top


APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Datacenter Server

Back to the top

Keywords: 
kbbug kbenv kbpending kbui KB244964

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.