Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Windows Management Instrumentation Commands

Posted on 15/03/202017/08/2026 Christian By Christian No Comments on Windows Management Instrumentation Commands
  1. Home
  2. Scripts
  3. Windows Management Instrumentation Commands
Windows Management Instrumentation

In this article, we shall discuss Windows Management Instrumentation Commands. Windows Management Instrumentation (WMI) is the Microsoft implementation of Web-Based Enterprise Management (WBEM), which is an industry initiative to develop a standard technology for accessing management information in an enterprise environment. Please see how to Get a list of installed programs locally or remotely in Windows, how to query a list of installed programs in Windows, and how to Remote WMI Connection: How to enable or disable WMI Traffic Using Firewall UI.

WMI is part of Windows since Windows 2000. It is a service that can query almost every detail about a computer system. PowerShell ships with full WMI support. Here is an article displaying the steps to determine why an MBAM-protected device is non-compliant.

Common Information Model) cmdlets

These are the most important CIM (Common Information Model) cmdlets and are fully supported by PowerShell.

Cmdlets used in PowerShellDescription
Get-CimInstance
Gets instances of WMI classes. This is the most important cmdlet  
Get-CimClassGets a WMI class. Use it to access static WMI methods.
Invoke-CimMethodRuns a WMI method, and returns results.
Set-CimInstanceWrites back changed properties.
New-CimSessionCreates a new remoting session to one or more remote systems
New-CimSessionOptionDefines special options for remoting connections.
Remove-CimSessionCloses and removes a remoting session that is no longer used.
New-CimInstanceCreates a new instances of a WMI class, i.e. for temporary use.

Also, see how to Remote WMI Connection: Manage Traffic via Command Prompt, How to fix Get-CimInstance Access PermissionDenied, and how to use PowerShell to View and Change BIOS Settings.

WMI Commands – How to query information using WMI (Get-CimInstance)

To get information from WMI, you ask for instances of a given class. The PowerShell code for this is always the same, so the hardest part in WMI is to figure out the name of the class that describes what you are after.

1: BIOS

Get-CimInstance -ClassName Win32_BIOS

Or run

Get-CimInstance
<And enter the class name at the prompt>
Win32_BIOS

2. DISK – list logical disk information

Get-CimInstance -ClassName Win32_LogicalDisk

or run

Get-CimInstance
<And enter the class name at the prompt>
Win32_LWin32_LogicalDisk

The WMI namespace root/cimv2 is the default namespace and contains classes for computer hardware and configuration.

root/cimv2 contains the following 276 classes:

The namespace root/cimv2 contains many more classes that may serve internal purposes (link classes to define relationships, abstract classes that serve as a template for inherited classes, etc. Take a look at the other class types.

I hope you found this blog post helpful on Windows Management Instrumentation Commands. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Scripts Tags:Windows Server 2016

Post navigation

Previous Post: How to create an Environment variables in Windows
Next Post: What is GPO and how can it be launched in Windows

Related Posts

  • Screenshot 2021 02 05 at 19.09.17
    Install and update PowerShell version 7 on Windows and Linux Scripts
  • powershell01
    How to create a KDS root key using PowerShell Scripts
  • SASS in VsCode
    How to Install SASS on VsCode Scripts
  • Get certificate thumbprint
    Retrieve an SSL Thumbprint in Windows using PowerShell Scripts
  • Chocolatey Packages
    Create Chocolatey Package: Upgrade Software with Chocolatey Scripts
  • Microsoft Defender
    Attack Surface Reduction Configuration with Microsoft Defender Scripts

More Related Articles

Generate SSH Keys Associate SSH Public key with Azure Linux VM AWS/Azure/OpenShift
powershell How to perform PowerShell syntax check using PSScriptAnalyzer Scripts
AzureCloudShell Provisioning Azure Resources using Azure Az PowerShell Cmdlet from Cloud Shell AWS/Azure/OpenShift
SASS in VsCode How to Install SASS on VsCode Scripts
Azure App Service How to Restore Deleted Azure App Service Using PowerShell Automation
Get certificate thumbprint Retrieve an SSL Thumbprint in Windows using PowerShell Scripts

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Capture 12
    How to Generate SSH Keys in Windows 10 Windows
  • How To Backup Your WordPress Database banner
    How to Backup and Restore your WordPress Files and Database Backup
  • newsroom hero image password security
    Unable to update the password value provided for the new password and Password Policy Windows Server
  • Featured image Clearing cache
    How to clear cache in Windows 11 Windows
  • A connection to the deployment share could not be made Errors in MDT e1781960443644
    PCI Driver Error: Connection to Deployment Share could not be made Windows
  • mdtxxxxx
    Failed to run the action install Operating System: Lifetouch deployment failed, Return Code = -2147467259 0x80004005 when installing Windows image via MDT Windows
  • How to stop remove and manage docker container
    Stopping, Removing and Naming Docker Container Containers
  • Screenshot 2020 05 14 at 19.09.08
    How to backup a Cisco IOS Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.