Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

wmic

Feedback

In this article

Displays WMI information inside an interactive command shell.

Important

The WMI command-line (WMIC) utility is deprecated as of Windows 10, version 21H1, and as of the 21H1 semi-annual channel release of Windows Server. This utility is superseded by Windows PowerShell for WMI (seeChapter 7 - Working with WMI). This deprecation applies only to the WMI command-line (WMIC) utility; Windows Management Instrumentation (WMI) itself is not affected. Also seeWindows 10 features we're no longer developing.

Syntax

wmic </parameter>

Sub-commands

The following sub-commands are available:

Sub-commandDescription
logicaldiskDisplays properties of all the logical disks on this computer.
classEscapes from the default alias mode of WMIC to access classes in the WMI schema directly.
pathEscapes from the default alias mode of WMIC to access instances in the WMI schema directly.
contextDisplays the current values of all global switches.
[quit | exit]Exits the WMIC command shell.

Examples

To display the current values of all global switches, type:

wmic context

Output similar to the following displays:

NAMESPACE    : root\cimv2ROLE         : root\cliNODE(S)      : BOBENTERPRISEIMPLEVEL     : IMPERSONATE[AUTHORITY   : N/A]AUTHLEVEL    : PKTPRIVACYLOCALE       : ms_409PRIVILEGES   : ENABLETRACE        : OFFRECORD       : N/AINTERACTIVE  : OFFFAILFAST     : OFFOUTPUT       : STDOUTAPPEND       : STDOUTUSER         : N/AAGGREGATE    : ON

To display all properties of all logical disks on the computer, type:

wmic logicaldisk

Output similar to the following displays:

Access                    Description        InstallDate                   PowerManagementSupported   StatusInfoAvailability              DeviceID           LastErrorCode                 ProviderName               SupportsDiskQuotasBlockSize                 DriveType          MaximumComponentLength        Purpose                    SupportsFileBasedCompressionCaption                   ErrorCleared       MediaType                     QuotasDisabled             SystemCreationClassNameCompressed                ErrorDescription   Name                          QuotasIncomplete           SystemNameConfigManagerErrorCode    ErrorMethodology   NumberOfBlocks                QuotasRebuilding           VolumeDirtyConfigManagerUserConfig   FileSystem         PNPDeviceID                   Size                       VolumeNameCreationClassName         FreeSpace          PowerManagementCapabilities   Status                     VolumeSerialNumber0   C:   FALSE   Win32_LogicalDisk   Local Fixed Disk   C:   3   NTFS   543237451776   255   12   C:                                                                                                                                              1021771247616   FALSE   TRUE   Win32_ComputerSystem   <TheDeviceName>   <TheVolumeName>   0011AABB

To get the name of the logical disks, type:

wmic logicaldisk get name

Output similar to the following displays:

NameC:

To change the language ID used by the command line to English (locale ID 409), type:

wmic /locale:ms_409

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?