Close Menu
    Facebook X (Twitter) Instagram
    Trending
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    • Workplace Ninja User Group Denmark February Meetup
    • Workplace Ninja User Group Denmark Meetup – May 2022
    • Workplace Ninja User Group Denmark Meetup – April 2022
    RONNIPEDERSEN.COM
    • Home
    • Enterprise Mobility
      • Configuration Manager
      • Identity and Access
      • Information Protection
      • Intune
    • Cloud and Data Center
      • Data Center Management
      • Group Policy
      • Enterprise Security
      • Hyper-V
      • PowerShell
    • Guides
    • Webcasts
    • Links
    • About
      • Contact me
      • Disclaimer
    RONNIPEDERSEN.COM
    You are at:Home»WMI Query

    WMI Query

    The following WMI queries can be used as inspiration when working with driveres and other OS Deployment stuff…
    IMPORTANT: If you copy/paste these queries, you might need to replace the quotes, as they often change format when you copy them from a website.

    Dell | Hewlett-Packard | Lenovo | Microsoft | VMWare | Operating System

    Dell

    Manufacturer is Dell:
    SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%Dell%”

    Models from Dell:
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%Latitude E7440%”
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%Optiplex 990%”
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%Precision M6800%”
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%Venue 11 Pro 7130%”

    Hewlett-Packard

    Manufacturer is Hewlett-Packard:
    SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%Hewlett-Packard%”

    Models from Hewlett-Packard:
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%HP EliteBook 8540p%”
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%HP EliteBook 8560w%”
    SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%ElitePad 1000%”

    Lenovo

    Manufacturer is Lenovo:
    SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%Lenovo%”

    Models from Lenovo:
    SELECT * FROM Win32_ComputerSystemProduct WHERE Version LIKE “%ThinkPad T420%”
    SELECT * FROM Win32_ComputerSystemProduct WHERE Version LIKE “%ThinkPad W520%”
    SELECT * FROM Win32_ComputerSystemProduct WHERE Version LIKE “%ThinkPad Edge E330%”
    SELECT * FROM Win32_ComputerSystemProduct WHERE Version LIKE “%ThinkPad Tablet 2%”

    Microsoft Hyper-V

    SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%Microsoft Corporation%” AND Model LIKE “%Virtual Machine%”

    VMWare

    SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%VMware%” AND Model LIKE “%VMware Virtual Platform%”

    Operating System (Windows)

    Determine 32 or 64-bit Operating System:
    SELECT * FROM Win32_ComputerSystem WHERE SystemType LIKE “%x64-based PC%”
    SELECT * FROM Win32_ComputerSystem WHERE SystemType LIKE “%x86-based PC%”

    Determine Operating System version:
    SELECT * FROM WIN32_OperatingSystem WHERE Version LIKE “6.1%”
    SELECT * FROM WIN32_OperatingSystem WHERE Version LIKE “6.3%”

    Usefull Commands

    wmic baseboard get product
    wmic csproduct get name
    wmic csproduct get vendor, version
    wmic computersystem get model,name,manufacturer,systemtype

    Follow
    APENTO

    Follow APENTO here:

    Subscribe to Blog via Email

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

    About
    My name i s Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Endpoint Management and Security, based on Microsoft technologies. I'm also a Microsoft Certified Trainer and a dual Microsoft MVP in both Security and Windows.
    Recent Posts
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    Archives
    TOP POSTS
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • SCCM 2012: Requirement Rules for Microsoft Office 32 or 64 bit
    • ConfigMgr 2012: Applications that depend on this application
    RECENT COMMENTS
    • cOSHi on Missing “UserType” attribute in Azure AD
    • Gus on Pro Tip: Use Ctrl+Alt+D from the Azure Portal to get performance information
    • Sebi on Prepare for Co-Management: Migrate Intune Devices without user affinity
    • Vadim P on SCCM: Failed to Get Client Identity (80004005)
    • TM on Active Directory Based Activation in an multi domain environment
    DISCLAIMER
    The content on this website is presented "as-is" with no guarantees. The use of scripts from this website is at your own risk. Always test before putting something in production! Opinions expressed are my own.
    © 2026 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.