Microsoft Swiss Army Toolkit

NetCraftsmen®

Want to find out the OS version of your computer? Run “wmic os”. The output shows up in columns with a ton of information. The version information show up as shown below

C:>wmic os
Version
5.1.2600

Here’s a list of all the command line parameters available

C:> wmic /?

[global switches] The following global switches are available:
/NAMESPACE Path for the namespace the alias operate against.
/ROLE Path for the role containing the alias definitions.
/NODE Servers the alias will operate against.
/IMPLEVEL Client impersonation level.
/AUTHLEVEL Client authentication level.
/LOCALE Language id the client should use.
/PRIVILEGES Enable or disable all privileges.
/TRACE Outputs debugging information to stderr.
/RECORD Logs all input commands and output.
/INTERACTIVE Sets or resets the interactive mode.
/FAILFAST Sets or resets the FailFast mode.
/USER User to be used during the session.
/PASSWORD Password to be used for session login.
/OUTPUT Specifies the mode for output redirection.
/APPEND Specifies the mode for output redirection.
/AGGREGATE Sets or resets aggregate mode.
/AUTHORITY Specifies the for the connection.
/?[:] Usage information.

For more information on a specific global switch, type: switch-name /?

The following alias/es are available in the current role:
ALIAS – Access to the aliases available on the local system
BASEBOARD – Base board (also known as a motherboard or system board) management.
BIOS – Basic input/output services (BIOS) management.
BOOTCONFIG – Boot configuration management.
CDROM – CD-ROM management.
COMPUTERSYSTEM – Computer system management.
CPU – CPU management.
CSPRODUCT – Computer system product information from SMBIOS.
DATAFILE – DataFile Management.
DCOMAPP – DCOM Application management.
DESKTOP – User’s Desktop management.
DESKTOPMONITOR – Desktop Monitor management.
DEVICEMEMORYADDRESS – Device memory addresses management.
DISKDRIVE – Physical disk drive management.
DISKQUOTA – Disk space usage for NTFS volumes.
DMACHANNEL – Direct memory access (DMA) channel management.
ENVIRONMENT – System environment settings management.
FSDIR – Filesystem directory entry management.
GROUP – Group account management.
IDECONTROLLER – IDE Controller management.
IRQ – Interrupt request line (IRQ) management.
JOB – Provides access to the jobs scheduled using the schedule service.
LOADORDER – Management of system services that define execution dependencies.
LOGICALDISK – Local storage device management.
LOGON – LOGON Sessions.
MEMCACHE – Cache memory management.
MEMLOGICAL – System memory management (configuration layout and availability of memory).
MEMPHYSICAL – Computer system’s physical memory management.
NETCLIENT – Network Client management.
NETLOGIN – Network login information (of a particular user) management.
NETPROTOCOL – Protocols (and their network characteristics) management.
NETUSE – Active network connection management.
NIC – Network Interface Controller (NIC) management.
NICCONFIG – Network adapter management.
NTDOMAIN – NT Domain management.
NTEVENT – Entries in the NT Event Log.
NTEVENTLOG – NT eventlog file management.
ONBOARDDEVICE – Management of common adapter devices built into the motherboard (system board).
OS – Installed Operating System/s management.
PAGEFILE – Virtual memory file swapping management.
PAGEFILESET – Page file settings management.
PARTITION – Management of partitioned areas of a physical disk.
PORT – I/O port management.
PORTCONNECTOR – Physical connection ports management.
PRINTER – Printer device management.
PRINTERCONFIG – Printer device configuration management.
PRINTJOB – Print job management.
PROCESS – Process management.
PRODUCT – Installation package task management.
QFE – Quick Fix Engineering.
QUOTASETTING – Setting information for disk quotas on a volume.
RECOVEROS – Information that will be gathered from memory when the operating system fails.
REGISTRY – Computer system registry management.
SCSICONTROLLER – SCSI Controller management.
SERVER – Server information management.
SERVICE – Service application management.
SHARE – Shared resource management.
SOFTWAREELEMENT – Management of the elements of a software product installed on a system.
SOFTWAREFEATURE – Management of software product subsets of SoftwareElement.
SOUNDDEV – Sound Device management.
STARTUP – Management of commands that run automatically when users log onto the computer system.
SYSACCOUNT – System account management.
SYSDRIVER – Management of the system driver for a base service.
SYSTEMENCLOSURE – Physical system enclosure management.
SYSTEMSLOT – Management of physical connection points including ports, slots and peripherals, and proprietary connections points.
TAPEDRIVE – Tape drive management.
TEMPERATURE – Data management of a temperature sensor (electronic thermometer).
TIMEZONE – Time zone data management.
UPS – Uninterruptible power supply (UPS) management.
USERACCOUNT – User account management.
VOLTAGE – Voltage sensor (electronic voltmeter) data management.
VOLUMEQUOTASETTING – Associates the disk quota setting with a specific disk volume.
WMISET – WMI service operational parameters management.

For more information on a specific alias, type: alias /?

CLASS – Escapes to full WMI schema.
PATH – Escapes to full WMI object paths.
CONTEXT – Displays the state of all the global switches.
QUIT/EXIT – Exits the program.

For more information on CLASS/PATH/CONTEXT, type: (CLASS | PATH | CONTEXT) /?

Leave a Reply

 

Nick Kelly

Cybersecurity Engineer, Cisco

Nick has over 20 years of experience in Security Operations and Security Sales. He is an avid student of cybersecurity and regularly engages with the Infosec community at events like BSides, RVASec, Derbycon and more. The son of an FBI forensics director, Nick holds a B.S. in Criminal Justice and is one of Cisco’s Fire Jumper Elite members. When he’s not working, he writes cyberpunk and punches aliens on his Playstation.

 

Virgilio “BONG” dela Cruz Jr.

CCDP, CCNA V, CCNP, Cisco IPS Express Security for AM/EE
Field Solutions Architect, Tech Data

Virgilio “Bong” has sixteen years of professional experience in IT industry from academe, technical and customer support, pre-sales, post sales, project management, training and enablement. He has worked in Cisco Technical Assistance Center (TAC) as a member of the WAN and LAN Switching team. Bong now works for Tech Data as the Field Solutions Architect with a focus on Cisco Security and holds a few Cisco certifications including Fire Jumper Elite.

 

John Cavanaugh

CCIE #1066, CCDE #20070002, CCAr
Chief Technology Officer, Practice Lead Security Services, NetCraftsmen

John is our CTO and the practice lead for a talented team of consultants focused on designing and delivering scalable and secure infrastructure solutions to customers across multiple industry verticals and technologies. Previously he has held several positions including Executive Director/Chief Architect for Global Network Services at JPMorgan Chase. In that capacity, he led a team managing network architecture and services.  Prior to his role at JPMorgan Chase, John was a Distinguished Engineer at Cisco working across a number of verticals including Higher Education, Finance, Retail, Government, and Health Care.

He is an expert in working with groups to identify business needs, and align technology strategies to enable business strategies, building in agility and scalability to allow for future changes. John is experienced in the architecture and design of highly available, secure, network infrastructure and data centers, and has worked on projects worldwide. He has worked in both the business and regulatory environments for the design and deployment of complex IT infrastructures.