Ten Useful WMIC Commands.

Ten Useful WMIC Commands.

  • Hi there and welcome to PC Help Forum (PCHF), a more effective way to get the Tech Support you need!
    We have Experts in all areas of Tech, including Malware Removal, Crash Fixing and BSOD's , Microsoft Windows, Computer DIY and PC Hardware, Networking, Gaming, Tablets and iPads, General and Specific Software Support and so much more.

    Why not Click Here To Sign Up and start enjoying great FREE Tech Support.

    This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  • Hello everyone We want to personally apologize to everyone for the downtime that we've experienced. We are working to get everything back up as quickly as possible. Due to the issues we've had, your password will need to be reset. Please click the button that says "Forgot Your Password" and change it. We are working to have things back to normal. Emails are broken but should be fixed soon. Thank you all for your patience. Thanks, PCHF Management
WMIC (Windows Management Instrumentation Command-line) is a powerful tool that allows users to query system information and manage various aspects of Windows operating systems. Here are ten useful WMIC commands:

Note: To run these commands you must open command prompt as administrator.


--- These commands will place a .txt file onto your desktop for easy saving or sharing of the information. ---


Retrieve Operating System Information:

wmic os get Caption, Version, BuildNumber, OSArchitecture >"%userprofile%\desktop\OSArchitecture.txt"

This command provides detailed information about the operating system, including its name, version, build number, and architecture.

List Installed Software:

wmic product get Name, Version >"%userprofile%\desktop\installedsoftware.txt"

This command lists all installed software along with their versions.

Retrieve Product Key:

wmic path softwarelicensingservice get OA3xOriginalProductKey >"%userprofile%\desktop\productkey.txt"

This command shows your windows product key which can be useful when reinstalling windows.

Get CPU Information:

wmic cpu get Name, NumberOfCores, NumberOfLogicalProcessors, MaxClockSpeed >"%userprofile%\desktop\CPU Info.txt"

This command retrieves detailed information about the CPU(s) in the system.


List Running Processes:

wmic process list brief >"%userprofile%\desktop\processes.txt"

This command lists all running processes in a brief format.

Check Disk Drive Information:

wmic diskdrive get Name, Model, Manufacturer, Size >"%userprofile%\desktop\disk drive.txt"

This command provides details about the disk drives installed in the system.

Retrieve Running Processes and Executable path:

wmic process get Name,ExecutablePath >"%userprofile%\desktop\process path.txt"

This command will display a list of all running processes along with their full executable paths.

Get BIOS Information and Serial Number:

wmic bios get Manufacturer, Name, Version, SerialNumber >"%userprofile%\desktop\Bios.txt"

This command provides information about the BIOS including manufacturer details and version number.

Retrieve IP Addresses and MAC Addresses:

wmic nicconfig where IPEnabled=True get ipaddress, macaddress /format:csv >"%userprofile%\desktop\Mac.txt"

This command lists your Ip address and Mac address

Retrieve Running Services:

wmic service where "state='running'" get Name,DisplayName,State >"%userprofile%\desktop\Running Services.txt"

This command will display running services.


The WMI command-line (WMIC) utility provides a command-line interface for Windows Management Instrumentation (WMI). WMIC is compatible with existing shells and utility commands. However, it is important to note that WMIC has been deprecated as of Windows 10, version 21H1, and the 21H1 semi-annual channel release of Windows Server. This deprecation applies only to the WMIC utility; WMI itself is not affected. The functionality provided by WMIC has been superseded by Windows PowerShell for WMI.
Author
Malnutrition
Views
302
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Malnutrition