Vulnerability & Exploit Database

Back to search

Windows Gather Run Specified WMIC Command

This module will execute a given WMIC command options or read WMIC commands options from a resource file and execute the commands in the specified Meterpreter session.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • Carlos Perez <carlos_perez [at]>


  • windows



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use post/windows/gather/wmic_command msf post(wmic_command) > sessions ...sessions... msf post(wmic_command) > set SESSION <session-id> msf post(wmic_command) > show options and set options... msf post(wmic_command) > run