The Zscript SET Command Does Not Set the zcDsLastUpdateTime and zcDsLastImportTime Attributes Correctly (328818)



The information in this article applies to:

  • Microsoft Metadirectory Services 2.2 SP1

This article was previously published under Q328818

SYMPTOMS

If you use the Zscript set command to reset the zcDsLastUpdateTime or zcDsLastImportTime attribute, the command is ignored. The timestamp value is incremented at the end of the management agent run.

For example, this is a partial sample from the Mascript.scr script that uses the Zscript set and vset commands that are designed to reset the timestamp attributes. The echo statements in the code show the values of the attributes in the log.
 #Setting the zcDsLastUpdateTime rollback time
echo zcDsLastUpdateTime = %zcDsLastUpdateTime%
VSET oldDSLastUpdateTime = %zcDsLastUpdateTime%
echo oldDSLastUpdateTime = %oldDSLastUpdateTime%

 #Setting the zcDsLastImportTime rollback time
echo zcDsLastImportTime = %zcDsLastImportTime%
VSET oldDSLastImportTime = %zcDsLastImportTime%
echo oldDSLastImportTime = %oldDSLastImportTime%
...
 IF %error% THEN
    echo *************************************************
    echo ** Discovery of users failed
    echo *************************************************

    #Rolling back LastUpdateTime
  echo zcDsLastUpdateTime = %zcDsLastUpdateTime%      
  echo oldDSLastUpdateTime = %oldDSLastUpdateTime%
  SET zcDsLastUpdateTime = %oldDSLastUpdateTime% 
  echo zcDsLastUpdateTime = %zcDsLastUpdateTime%

    #Rolling back LastImportTime
  echo zcDsLastImportTime = %zcDsLastImportTime%      
  echo oldDSLastImportTime = %oldDSLastImportTime%
  SET zcDsLastImportTime = %oldDSLastImportTime% 
  echo zcDsLastImportTime = %zcDsLastImportTime%

  exit
ENDIF
				
These are the results from the management agent log:
  • First debug echo:

    zcDsLastUpdateTime = 020528100011+0200.00
    oldDSLastUpdateTime = 020528100011+0200.00
    zcDsLastImportTime = 020528120033+0200.00
    oldDSLastImportTime = 020528120033+0200.00

  • Second debug echo:

    zcDsLastUpdateTime = 020528204551+0200.00
    oldDSLastUpdateTime = 020528100011+0200.00
    zcDsLastUpdateTime = 020528204551+0200.00
    zcDsLastImportTime = 020619160559+0200.00
    oldDSLastImportTime = 020528120033+0200.00
    zcDsLastImportTime = 020619160559+0200.00

The set command does not reset the time. The time is incremented at the end of the management Agent run.

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next version of Microsoft Metadirectory Services that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version      Size       File name
   ----------------------------------------------------------
   25-Jul-2001  15:08                 166,356  Db5attr.oid
   03-Jan-2002  16:37  2.2.1300.16    175,104  Cdir_ad.dll
   20-May-2002  14:01  2.2.1300.26  1,015,296  Cdir_ex.exe
   12-Jul-2002  13:50  2.2.1300.29  1,031,680  Cdir_ldp.exe
   20-May-2002  14:01  2.2.1300.26  1,017,856  Cdir_ln.exe
   20-May-2002  14:01  2.2.1300.26  1,060,864  Cdir_nt.exe
   20-May-2002  14:01  2.2.1300.26    998,400  Cdir_nw.exe
   20-May-2002  14:01  2.2.1300.26    987,648  Cdir_vns.exe
   20-May-2002  14:00  2.2.1300.26    964,096  Importt.exe
   20-Sep-2001  16:41  2.2.1300.10     26,624  Ldapschema.dll
   22-Apr-2002  09:04  2.2.1300.21  1,030,656  Viacompact.exe
   07-Jun-2002  10:44  2.2.1300.28  1,266,176  Viaserver.exe
   25-Sep-2002  17:09  2.2.1300.33    997,888  Zscript.exe
   01-Aug-2001  15:17                     834  Updoid.bat
   25-Sep-2002  17:09  2.2.1300.33      7,168  Zoid.exe
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:10/7/2005
Keywords:kbbug kbfix kbQFE KB328818