Microsoft KB Archive/302003

= Forms with VBScript do not work with Terminal Services in Outlook =

Article ID: 302003

Article Last Modified on 5/31/2007

-

APPLIES TO

 Microsoft Office Outlook 2007 Microsoft Office Outlook 2003 Microsoft Outlook 2002 Standard Edition, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

 Microsoft Windows 2000 Server</li></ul>

 Microsoft Windows NT Server 4.0, Terminal Server Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q302003

<div class="symptoms_section">

SYMPTOMS
If you are using Microsoft Outlook in a Terminal Services environment, you cannot use Visual Basic Scripting Edition (VBScript) in custom Outlook forms. This issue can occur when you are using Microsoft Windows NT 4.0 Terminal Server in Install mode or User mode. This issue also occurs with Windows 2000 Terminal Server in Application mode but not in Remote Administration mode.

<div class="cause_section">

CAUSE
By default, Microsoft Office XP, Microsoft Office 2003, and 2007 Microsoft Office programs do not install the VBScript component in Windows Terminal Server environments.

<div class="workaround_section">

WORKAROUND
Use one of the following methods to work around this problem.

Method 1: Copy the Outlvbs.dll file to existing installations
To do this, follow these steps:
 * 1) Copy the Outlvbs.dll file from a computer that is not running Microsoft Outlook on a Terminal Server.
 * 2) Copy the Outlvbs.dll file to the Program Files\Microsoft Office\Office10 folder of the affected Terminal Server computer.

Note If the Terminal Server is running Microsoft Office 2003, copy the Outlvbs.dll file to the Program Files\Microsoft Office\Office11 folder. If the Terminal Server is running 2007 Microsoft Office programs, copy the Outlvbs.dll file to the Program Files\Microsoft Office\Office12 folder.

Method 2: Use the Custom Installation Wizard to deploy Microsoft Office with an additional property to let the VBScript component to be installed
To do this, follow these steps:
 * 1) Open the Custom Installation Wizard, and then create a new transform (.MST) file for the Microsoft Office installation.
 * 2) Configure your installation requirement in the Custom Installation Wizard.
 * 3) On the last available page of the Custom Installation Wizard, click Modify Setup Properties, and then add the following property name and value:

Property Name: WTSDISABLED

Value: MsInfoFiles,PPTCastCoreFiles

Note Both the property name and the value are case sensitive.

For Office XP, Modify Setup Properties is on page 21 of 22 of the Custom Installation Wizard. For Office 2003, Modify Setup Properties is on page 23 of 24 of the Custom Installation Wizard.

To enable VB Script support for Outlook forms when running Outlook 2007 on a Terminal Server computer, do the following: <ol> Install Outlook 2007 as a standalone application or as part of a 2007 Office suite.</li> Determine the globally unique identifier (GUID) for the product that you just installed. If you installed Outlook, use that product GUID. If you installed Office Enterprise 2007, use that product GUID. For more information about how to determine the GUID of the product that you installed, click the following article number to view the article in the Microsoft Knowledge Base:

928516 Description of the numbering scheme for product code GUIDs in 2007 Office suites and programs

</li> After you have the product GUID, run the following command line:

msiexec /i  ADDLOCAL=OutlookVBScript /qb

Note In this command,  is a placeholder for your product GUID.

For example, if you have Office Enterprise 2007 installed, your product GUID would be the following:

{90120000-0030-0000-0000-0000000FF1CE}

Therefore, the command line should appear as follows:

msiexec /i {90120000-0030-0000-0000-0000000FF1CE} ADDLOCAL=OutlookVBScript /qb

</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
Microsoft Office and Outlook Setup detect when you are installing Outlook on a computer configured with Terminal Services. In these situations, the support files necessary to enable VBScript in Outlook custom forms are not installed. Therefore, if you try to start the Outlook Script Editor, you receive the following error message:

Unable to load this feature. Feature ID not registered.

If you try to use a custom Outlook form that contains VBScript, you do not receive an error message, but the VBScript code in the form does not run.

Note Earlier versions of Outlook supported VBScript in a Terminal Services environment.

For more information about available resources and answers to commonly asked questions about Microsoft Outlook solutions, click the following article number to view the article in the Microsoft Knowledge Base:

287530 Frequently asked questions about custom forms and Outlook solutions

Additional query words: OutSol OutSol2002 OutlookVBScript

Keywords: kbbug kbpending KB302003

-

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

© Microsoft Corporation. All rights reserved.