SNA WMI Provider Does Not Allow TN Workstation/TNIPID to Be Added (287751)



The information in this article applies to:

  • Microsoft Host Integration Server 2000

This article was previously published under Q287751

SYMPTOMS

You use Windows Management Instrumentation (WMI) to add a TN3270 workstation to a Host Integration Server 2000 configuration, but the attempt fails and no error message is returned.

RESOLUTION

To resolve this problem, obtain the latest service pack for Host Integration Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

328152 How to Obtain the Latest Host Integration Server 2000 Service Pack

The English version of this fix should have the following file attributes or later:

File nameDateTime
Wmisna.dll03/26/200116:56

NOTE: Because of file dependencies, the most recent fix that contains the preceding files may also contain additional files.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Host Integration Server 2000 Service Pack 1.

MORE INFORMATION

The following script is an example of how TN370 workstation information can be added to a Host Integration Server 2000 configuration through the use of WMI. This code will fail, however, unless the fix described in the "Resolution" section of this article is applied first.
Set WmiLocator = CreateObject("WbemScripting.SWBemLocator")
Set WmiNameSpace = WmiLocator.ConnectServer("","root\MicrosoftHis")
Set WmiObj = WmiNameSpace.Get("MsSna_TN3270SessionIPFilter")
WmiObj.Security_.impersonationLevel = 3
Set NewWmiObj = WmiObj.SpawnInstance_

NewWmiObj.Name="workstation1"
NewWmiObj.Session="TN004"
NewWmiObj.Put_ wbemFlagReturnWhenComplete
				


For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

287750 Using SNACFG TNIPID /ADD Fails to Add Workstation Information


Modification Type:MinorLast Reviewed:4/13/2005
Keywords:kbbug kbfix kbHostIntegServ2000preSP1fix kbHostIntegServ2000SP1fix KB287751