Thursday, June 30, 2016

Some Uses of Windows Management Instrumentation Command-line (WMIC)

(1) Run : Windows CMD(Command Prompt)
(2) Type below command

GET CPU DETAILS
wmic cpu get deviceid, numberofcores,numberoflogicalprocessors


GET MODEL OF REMOTE COMPUTER
* Local PC
wmic computersystem get model, manufacturer
* Network PC
wmic /node:%ipaddress% computersystem get model, manufacturer


GET BIOS SERIAL NO.
* Local PC
wmic bios get serialnumber  
* Network PC
wmic /node:%ipaddress%bios get serialnumber      


FIND INSTALLED PROGRAM 
* Local PC
wmic product get vendor, name
* Network PC
wmic /node:%ipaddress% product get vendor, name


INSTALL REMOTELY
wmic /node:%ipaddress% product call install true,"","rootdirectory\pathtoyour\file.msi"


UNSTALL SOFTWARE ON REMOTEPC's
wmic /node:%ipaddress% product where name=%softwaretobeunstall%" call uninstall


No comments: