IBM Support

PH45954: REMOVE WMIC FROM CLEARCLASSCACHE.BAT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • wmic is scheduled for removal in future Windows versions; replac
    its usage in clearClassCache.bat with another tool to provide th
    log file's date stamp.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server on Windows.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: The clearClassCache.bat utility uses    *
    *                      WMIC, which was deprecated in Windows   *
    *                      10.                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    APAR PH45954 modifies the clearClassCache.bat utility to use
    the PowerShell "Get-Date" cmdlet instead of WMIC to compute a
    date having a locale-independent format.
    Microsoft deprecated WMIC in Windows 10 [ref 1] and may remove
    it from future releases.
    APAR PH45954 ensures the clearClassCache.bat utility will
    function over future releases of Windows which lack WMIC.
    References:
    1. https://docs.microsoft.com/en-
    us/windows/deployment/planning/
    windows-10-deprecated-features
    

Problem conclusion

  • Apply APAR PH45954 to replace WMIC with PowerShell within the
    clearClassCache.bat utility.
    
    The fix for this APAR is targeted for inclusion in fix packs
    8.5.5.22 and 9.0.5.13. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH45954

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-04-27

  • Closed date

    2022-05-11

  • Last modified date

    2022-05-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0"}]

Document Information

Modified date:
12 May 2022