
Get Description, DeviceType, Enabled, Status Where (LogFile='system' and SourceName='W32Time' and EventCode!='29') get TimeGenerated, EventCode, Message Where (LogFile='system' and SourceName='W32Time' and Message like '%timesource%') get Message, TimeGenerated Where (LogFile='system' and SourceName='W32Time') get Message, TimeGenerated Get Caption, ClientSiteName, DomainControllerAddress, DomainControllerName, Roles, Status Get MACAddress, IPAddress, WINSPrimaryServer, WINSSecondaryServer, WINSEnableLMHostsLookup, WINSHostLookupFile Get MACAddress, IPAddress, DNSHostName, DNSDomain, DNSDomainSuffixSearchOrder, DNSEnabledForWINSResolution, DNSServerSearchOrder Get MACAddress, IPAddress, DHCPEnabled, DHCPLeaseExpires, DHCPLeaseObtained, DHCPServer Get MACAddress, DefaultIPGateway, IPAddress, IPSubnet, DNSHostName, DNSDomain Get AdapterType, AutoSense, Name, Installed, MACAddress, PNPDeviceID,PowerManagementSupported, Speed, StatusInfo Get Caption, DisplayType, LocalName, Name, ProviderName, Status Get Caption, Description, GuaranteesSequencing, SupportsBroadcasting, SupportsEncryption, Status Get Name, Fullname, ScriptPath, Profile, UserID, NumberOfLogons, PasswordAge, LogonServer, HomeDirectory, PrimaryGroupID Get Manufacturer, Model, SerialNumber, MaxCapacity, MemoryDevices Get AvailableVirtualMemory, TotalPageFileSpace, TotalPhysicalMemory, TotalVirtualMemory Get Name, BlockSize, Purpose, MaxCacheSize, Status Get Name, Compressed, Description, DriveType, FileSystem, FreeSpace, SupportsDiskQuotas, VolumeDirty, VolumeName Get Name, DriverEnabled, GroupOrder, Status Get Name, Owner, DaysOfMonth, DaysOfWeek, ElapsedTime, JobStatus, StartTime, Status Get Caption, InstallDate, LocalAccount, Domain, SID, Status Where name='c:\windows' get Archive, CreationDate, LastModified, Readable, Writeable, System, Hidden, Status Get User, Warninglimit, DiskSpaceUsed, QuotaVolume Get Name, Manufacturer, Model, InterfaceType, MediaLoaded, MediaType Get Name, ScreenSaverExecutable, ScreenSaverActive, Wallpaper /format:list Where name='c:\boot.ini' get Archive, FileSize, FileType, InstallDate, Readable, Writeable, System, Version Get Name, Caption, MaxClockSpeed, DeviceID, status Get Name, domain, Manufacturer, Model, NumberofProcessors, PrimaryOwnerName,Username, Roles, totalphysicalmemory /format:list Get BootDirectory, Caption, TempDirectory, Lastdrive Get Manufacturer, Model, Name, PartNumber, slotlayout, serialnumber, poweredon To execute these queries, run “WMIC” at a command prompt, followed by one of the following alias/es: With that said, the following is a list of WMIC queries that you can run on your Workstations/Servers. This blog will assume that you already have a grasp of WMI and are looking for more WMI testing options via the Command Line. All WMI objects and their properties, including their methods, are accessible through the shell, which makes WMIC an advanced systems management console. In its simplest form, WMIC is a utility that allows you to interact with WMI from a WMI-aware command-line shell. Have you ever wanted to test WMI using the command line (outside of VBSCRIPT)? If so, then WMIC is the tool for you. Hello AskPerf Blog Readers! This morning’s post is going to be more of a reference point for all those WMI junkies out there. First published on TECHNET on Feb 17, 2012
