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 ?
Client Automation - All Versions.
This script is used by intellisig script "IBM Websphere MQ"
If intellisig script for IBM Websphere MQ is not needed, it is possible to disable it :
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).
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*\