Batch file to list all the methods in WMI command line tool (wmic)

@ECHO OFF



FOR /F %%a IN ('wmic alias list instance ^| FIND /v "Friend" ') DO (

   FOR /F %%b IN ('wmic %%a /? ^| FIND /i "%%a CALL"' ) DO (

       ECHO wmic %%b CALL /?

       wmic %%b CALL /?

   )

)

This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.


Be the first to comment

Leave a Reply