Hp officejet g series fax FALSE FALSE TRUE FALSE Unknown Hp photosmart 240 series FALSE FALSE TRUE TRUE PHOTO-printer Unknown Lexmark i3 TRUE FALSE TRUE TRUE Lexmark I3 Office Unknown Microsoft XPS Document Writer FALSE FALSE TRUE FALSE Unknown TPC PostScript HQ2K FALSE FALSE TRUE FALSE Unknown Printers C:\Tools> wmic printer get Caption, Default, Direct, Description, Local, Shared, Sharename, StatusĬaption Default Description Direct Local Shared ShareName Status Path Win32_VideoController get caption, CurrentHorizontalResolution,ĬurrentVerticalResolution, Description, DriverVersion, AdapterRAMĬaption=MOBILITY RADEON 9600/9700 (Microsoft Corporation - WDDM)ĭescription=MOBILITY RADEON 9600/9700 (Microsoft Corporation - WDDM) I would haveĬompared the IPAddress value to good IPs (or eliminated 192.168 andġ69.* addresses), but sadly I have not figured out a way to do WHERE Want to get this info from systems with static IPs. The third example, I only care about the NIC that is enabled andĬonnected! Could have used DHCPEnabled as the second test, but we might
Here we have several IPEnabledĭevices which we don't really care about the system runs VMware, has a The second example I use a where IPEnabled='TRUE' clause to narrow In the first example below, I query for all NICs.
C:\Tools> wmic memlogical get AvailableVirtualMemory, TotalPhysicalMemory, TotalVirtualMemoryĪvailableVirtualMemory TotalPhysicalMemory TotalVirtualMemory I can't really explain why the output below gives me more available virtual memory than total virtual memory. information! C:\Tools> WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictStatus get * /format:list The drive is an optical disc device, such as a CD or DVD-ROM. The drive is a removable storage device, such as a floppy disk drive or a USB flash drive. The drive does not have a root directory. Processor Info C:\Tools> wmic cpu get deviceID, Addresswidth, MaxClockSpeed, Name, Manufacturer, ProcessorIDĪddressWidth DeviceID Manufacturer MaxClockSpeed Name ProcessorIdģ2 CPU0 GenuineIntel 2992 Intel(R) Pentium(R) 4 CPU 3.00GHz BFEBFBFF00000F29ģ2 CPU1 GenuineIntel 2992 Intel(R) Pentium(R) 4 CPU 3.00GHz BFEBFBFF00000F29Ĭ:\Tools> wmic logicaldisk where drivetype=3 get name, freespace, systemname, filesystem, size, volumeserialnumberįileSystem FreeSpace Name Size SystemName VolumeSerialNumber Manufacturer Model Product SerialNumber Version 11.0310141038 INTEL - 20031014Ĭ:\Tools> wmic baseboard get Manufacturer, Model, Product, SerialNumber, Version It returns theĬ:\Tools> wmic computersystem get domain, EnableDaylightSavingsTime, Manufacturer, Model, PartOfDomain, TotalPhysicalMemory, usernameĭomain EnableDaylightSavingsTime Manufacturer Model PartOfDomain TotalPhysicalMemory UserNameĬ TRUE INTEL_ D865GLC_ TRUE 2146148352 PURGATORY\quuxĬ:\Tools> wmic bios get Caption, Manufacturer, SMBIOSBIOSVersion, VersionĬaption Manufacturer SMBIOSBIOSVersion VersionīIOS Date: 10/14/03 10:38:21 Ver: 08.00.09 Intel Corp. WeĪsk a WMI object (computersystem, or bios, or baseboard in the examplesīelow) to return the values for a few of its properties. This command, provided that you know the WMI class, can specify an instance and retrieve properties or call on a defined method.First example shows a few variations of the most common WMI query.
This command, however, is subject to all WMI security measures, such as, namespace security. This command requests the computer to add to the list of nodes from which you want to retrieve information. node:(computer1),(computer2),(computer3) This command requests the computer to list all the processes on specified computers where the ProcessID is greater than 300, and at the same time list only the minimum information on these processes. Process where (processid>300) list brief:
WMIC UNINSTALL EXE WINDOWS
To save time during Windows installation, this operation takes place as necessary.Īt a command prompt, type: wmic, and an interactive-mode prompt "wmic:root\cli" is displayed. When you run the Wmic.exe utility for the first time, the utility compiles its. Wmic.exe can only be used by the local system administrators regardless of WMI namespace permissions on the local machine. Previously, an end user would generally write a script to gather information by means of WMI. The versions of Windows that are listed at the beginning of this article include a command-line utility (Wmic.exe) to access Windows Management Instrumentation (WMI). A Description of the Windows Management Instrumentation (WMI) Command-Line Utility (Wmic.exe) Summary