Last active
February 18, 2026 05:00
-
-
Save watson0x90/1d79a561666ff8e23a079bc35fd9269a to your computer and use it in GitHub Desktop.
WMIC commands from https://blogs.technet.microsoft.com/askperf/2012/02/17/useful-wmic-queries/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #WMIC Commands from https://blogs.technet.microsoft.com/askperf/2012/02/17/useful-wmic-queries/ | |
| wmic baseboard get Manufacturer, Model, Name, PartNumber, slotlayout, serialnumber, poweredon | |
| wmic bios get name, version, serialnumber | |
| wmic bootconfig get BootDirectory, Caption, TempDirectory, Lastdrive | |
| wmic cdrom get Name, Drive, Volumename | |
| wmic computersystem get Name, domain, Manufacturer, Model, NumberofProcessors, PrimaryOwnerName,Username, Roles, totalphysicalmemory /format:list | |
| wmic cpu get Name, Caption, MaxClockSpeed, DeviceID, status | |
| wmic datafile where name=’c:\boot.ini’ get Archive, FileSize, FileType, InstallDate, Readable, Writeable, System, Version | |
| wmic dcomapp get Name, AppID /format:list | |
| wmic desktop get Name, ScreenSaverExecutable, ScreenSaverActive, Wallpaper /format:list | |
| wmic desktopmonitor get screenheight, screenwidth | |
| wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaLoaded, MediaType | |
| wmic diskquota get User, Warninglimit, DiskSpaceUsed, QuotaVolume | |
| wmic environment get Description, VariableValue | |
| wmic fsdir where name=’c:\windows’ get Archive, CreationDate, LastModified, Readable, Writeable, System, Hidden, Status | |
| wmic group get Caption, InstallDate, LocalAccount, Domain, SID, Status | |
| wmic idecontroller get Name, Manufacturer, DeviceID, Status | |
| wmic irq get Name, Status | |
| wmic job get Name, Owner, DaysOfMonth, DaysOfWeek, ElapsedTime, JobStatus, StartTime, Status | |
| wmic loadorder get Name, DriverEnabled, GroupOrder, Status | |
| wmic logicaldisk get Name, Compressed, Description, DriveType, FileSystem, FreeSpace, SupportsDiskQuotas, VolumeDirty, VolumeName | |
| wmic memcache get Name, BlockSize, Purpose, MaxCacheSize, Status | |
| wmic memlogical get AvailableVirtualMemory, TotalPageFileSpace, TotalPhysicalMemory, TotalVirtualMemory | |
| wmic memphysical get Manufacturer, Model, SerialNumber, MaxCapacity, MemoryDevices | |
| wmic netclient get Caption, Name, Manufacturer, Status | |
| wmic netlogin get Name, Fullname, ScriptPath, Profile, UserID, NumberOfLogons, PasswordAge, LogonServer, HomeDirectory, PrimaryGroupID | |
| wmic netprotocol get Caption, Description, GuaranteesSequencing, SupportsBroadcasting, SupportsEncryption, Status | |
| wmic netuse get Caption, DisplayType, LocalName, Name, ProviderName, Status | |
| wmic nic get AdapterType, AutoSense, Name, Installed, MACAddress, PNPDeviceID,PowerManagementSupported, Speed, StatusInfo | |
| wmic nicconfig get MACAddress, DefaultIPGateway, IPAddress, IPSubnet, DNSHostName, DNSDomain | |
| wmic nicconfig get MACAddress, IPAddress, DHCPEnabled, DHCPLeaseExpires, DHCPLeaseObtained, DHCPServer | |
| wmic nicconfig get MACAddress, IPAddress, DNSHostName, DNSDomain, DNSDomainSuffixSearchOrder, DNSEnabledForWINSResolution, DNSServerSearchOrder | |
| wmic nicconfig get MACAddress, IPAddress, WINSPrimaryServer, WINSSecondaryServer, WINSEnableLMHostsLookup, WINSHostLookupFile | |
| wmic ntdomain get Caption, ClientSiteName, DomainControllerAddress, DomainControllerName, Roles, Status | |
| wmic ntevent where (LogFile=’system’ and SourceName=’W32Time’) get Message, TimeGenerated | |
| wmic ntevent where (LogFile=’system’ and SourceName=’W32Time’ and Message like ‘%timesource%’) get Message, TimeGenerated | |
| wmic ntevent where (LogFile=’system’ and SourceName=’W32Time’ and EventCode!=’29’) get TimeGenerated, EventCode, Message | |
| wmic onboarddevice get Description, DeviceType, Enabled, Status | |
| wmic os get Version, Caption, CountryCode, CSName, Description, InstallDate, SerialNumber, ServicePackMajorVersion, WindowsDirectory /format:list | |
| wmic os get CurrentTimeZone, FreePhysicalMemory, FreeVirtualMemory, LastBootUpTime, NumberofProcesses, NumberofUsers, Organization, RegisteredUser, Status | |
| wmic pagefile get Caption, CurrentUsage, Status, TempPageFile | |
| wmic pagefileset get Name, InitialSize, MaximumSize | |
| wmic partition get Caption, Size, PrimaryPartition, Status, Type | |
| wmic printer get DeviceID, DriverName, Hidden, Name, PortName, PowerManagementSupported, PrintJobDataType, VerticalResolution, Horizontalresolution | |
| wmic printjob get Description, Document, ElapsedTime, HostPrintQueue, JobID, JobStatus, Name, Notify, Owner, TimeSubmitted, TotalPages | |
| wmic process get Caption, CommandLine, Handle, HandleCount, PageFaults, PageFileUsage, PArentProcessId, ProcessId, ThreadCount | |
| wmic product get Description, InstallDate, Name, Vendor, Version | |
| wmic qfe get description, FixComments, HotFixID, InstalledBy, InstalledOn, ServicePackInEffect | |
| wmic quotasetting get Caption, DefaultLimit, Description, DefaultWarningLimit, SettingID, State | |
| wmic recoveros get AutoReboot, DebugFilePath, WriteDebugInfo, WriteToSystemLog | |
| wmic Registry get CurrentSize, MaximumSize, ProposedSize, Status | |
| wmic scsicontroller get Caption, DeviceID, Manufacturer, PNPDeviceID | |
| wmic server get ErrorsAccessPermissions, ErrorsGrantedAccess, ErrorsLogon, ErrorsSystem, FilesOpen, FileDirectorySearches | |
| wmic service get Name, Caption, State, ServiceType, StartMode, pathname | |
| wmic share get name, path, status | |
| wmic sounddev get Caption, DeviceID, PNPDeviceID, Manufacturer, status | |
| wmic startup get Caption, Location, Command | |
| wmic sysaccount get Caption, Domain, Name, SID, SIDType, Status | |
| wmic sysdriver get Caption, Name, PathName, ServiceType, State, Status | |
| wmic systemenclosure get Caption, Height, Depth, Manufacturer, Model, SMBIOSAssetTag, AudibleAlarm, SecurityStatus, SecurityBreach, PoweredOn, NumberOfPowerCords | |
| wmic systemslot get Number, SlotDesignation, Status, SupportsHotPlug, Version, CurrentUsage, ConnectorPinout | |
| wmic tapedrive get Name, Capabilities, Compression, Description, MediaType, NeedsCleaning, Status, StatusInfo | |
| wmic timezone get Caption, Bias, DaylightBias, DaylightName, StandardName | |
| wmic useraccount get AccountType, Description, Domain, Disabled, LocalAccount, Lockout, PasswordChangeable, PasswordExpires, PasswordRequired, SID | |
| wmic memorychip get BankLabel, Capacity, Caption, CreationClassName, DataWidth, Description, Devicelocator, FormFactor, HotSwappable, InstallDate, InterleaveDataDepth, InterleavePosition, Manufacturer, MemoryType, Model, Name, OtherIdentifyingInfo, PartNumber, PositionInRow, PoweredOn, Removable, Replaceable, SerialNumber, SKU, Speed, Status, Tag, TotalWidth, TypeDetail, Version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment