コマンド プロンプトやバッチ ファイルなどを使用して作業するのは、いつでも楽しいものです。私は今でもコマンド プロンプトで多くの作業をしたり、バッチ ファイルで作業を自動化したりするのが大好きです。この記事では、あなたをリストしますWMIコマンド(Windows Management Instrumentation) これは、さまざまな目的で Windows 11/10/8/7 内でクエリを実行するのに役立ちます。

WMIC は Windows 11 で利用できますか?
Microsoft は WMIC 機能を非推奨にしました2024 年 1 月 29 日以降、Windows 11 Insider ビルドではデフォルトで無効になりました。元々、WMIC は Windows では 2016 年に非推奨になりました。それ以降、Windows 11 22H2 の一部として機能オンデマンド (FoD) として利用できるようになりました。 FoD はいつでも Windows 11 に追加して作業できます。 Windows 11 バージョン 22H2 以降では、オンデマンド機能がデフォルトで有効になっています。ただし、2024 年 1 月 29 日以降、Windows 11 の Insider ビルドからはデフォルトで無効になります。
Windows 管理インストルメンテーションコマンドラインまたはWMIC
Windows Management Instrumentation (WMI) は、Windows ベースのオペレーティング システム上の管理データと操作のためのインフラストラクチャです。 WMI スクリプトまたはアプリケーションを作成してリモート コンピューター上の管理タスクを自動化できますが、WMI はオペレーティング システムの他の部分や製品 (System Center Operations Manager など) にも管理データを提供します。
次のグローバル スイッチが使用可能です。
/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 <authority type> for the connection.
/?[:<BRIEF|FULL>] Usage information.
特定のグローバル スイッチの詳細については、次のように入力します。switch-name /?
読む:
現在のロールでは次のエイリアスを使用できます。
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.
MEMORYCHIP - Memory chip information.
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.
RDACCOUNT - Remote Desktop connection permission management.
RDNIC - Remote Desktop connection management on a specific
network adapter.RDPERMISSIONS - Permissions to a specific Remote Desktop connection.
RDTOGGLE - Turning Remote Desktop listener on or off remotely.
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.
SHADOWCOPY - Shadow copy management.
SHADOWSTORAGE - Shadow copy storage area 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.
VOLUME - Local storage volume management.
VOLUMEQUOTASETTING - Associates the disk quota setting with a specific disk volume.
VOLUMEUSERQUOTA - Per user storage volume quota management.
WMISET - WMI service operational parameters management.
特定のエイリアスの詳細については、次のように入力します。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.
以下に例を示します。
QFE コマンドは、システムに適用されているホットフィックスやセキュリティ更新プログラムのリストを確認するためによく使用します。
使用法:
コマンドプロンプトを開いて次のように入力しますwmic qfe。これでリストが表示されます!
出力:
Caption CSName Description HotFixID InstalledBy https://go.microsoft.com/fwlink/?LinkId=161784 CAPTAINDBG Update KB971033 NT AUTHORITY\SYSTEM https://support.microsoft.com/?kbid=2079403 CAPTAINDBG Security Update KB2079403 NT AUTHORITY\SYSTEM https://support.microsoft.com/?kbid=2207566 CAPTAINDBG Security Update KB2207566 NT AUTHORITY\SYSTEM https://support.microsoft.com/?kbid=2281679 CAPTAINDBG Security Update KB2281679 NT AUTHORITY\SYSTEM https://support.microsoft.com/?kbid=2286198 CAPTAINDBG Security Update KB2286198 NT AUTHORITY\SYSTEM https://support.microsoft.com/?kbid=2296011 CAPTAINDBG Security Update KB2296011 NT AUTHORITY\SYSTEM
こちらもお読みください: 方法Windows 11/10の場合
WMIC に取って代わるものは何ですか?
WMIC は、WMI 用の Windows PowerShell に置き換えられます。 Microsoft は Windows PowerShell に多額の投資を行っています。 Microsoft は、WMI をクエリするためのより効率的な方法を提供すると述べています。コードの複雑さが軽減され、ユーザーの安全性と生産性が向上します。
関連記事:



![認証読み取り ECONNRESET コパイロット エラー [修正]](https://elsefix.com/tech/tejana/wp-content/uploads/2024/12/error-econnreset-copilot.jpg)

![モジュール監視モード VMware で電源投入に失敗する [修正]](https://elsefix.com/tech/tejana/wp-content/uploads/2024/11/module-monitor-failed.png)




![修正:Windowsで新しいフォルダーを作成できません[オプションは利用できません]](https://elsefix.com/tech/alice/wp-content/uploads/cache/2025/06/Cannot-create-new-folder-windows-10.jpg)



