WMIC command found in WMQ.bat script.
search cancel

WMIC command found in WMQ.bat script.

book

Article ID: 390591

calendar_today

Updated On: 03-12-2025

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

wmic.exe tool is no more part of recent Windows 11 release. This is an optional feature which is no more installed by default.

On the Agents, wmic.exe is used in script WMQ.bat in following path:

C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\X0000054\F1A79A4D-A127-4961-8C8E-58B81968026F\2.4\WMQ.bat

This script uses wmic in following command :

for /f "tokens=2 delims==" %%d in ('wmic logicaldisk where "drivetype=3" get name /format:value') do echo %%d >> drives.txt 

How to remove this script from the Agents ?

Environment

Client Automation - All Versions.

Cause

This script is used by intellisig script "IBM Websphere MQ"

Resolution

If intellisig script for IBM Websphere MQ is not needed, it is possible to disable it :

  1. In DSM Explorer go under Software/Definitions/Intellisigs
  2. Right click on IBM Websphere MQ and select Disable Scan :

  3. This will generate new files X00000*.DAT and X00000*.ZML on the sector of scalability servers under :
    C:\Program Files (x86)\CA\DSM\ServerDB\SECTOR\SSFW

    These files are generated during execution of Scalability Collect job by the engines.
    These new files do not contain anymore the script for IBM WebSphere MQ (WMQ.bat).

  4. When AM Agent is executed on the agents and when Software Inventory Signature Scan is executed, this new version is downloaded and previous version is deleted.
    So the agents will not have anymore the script WMQ.bat under C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\X00000*\