• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Code / Use WMI Code Creator to simplify WMI scripting

Use WMI Code Creator to simplify WMI scripting

2012-12-06 by Jason

Windows Management Instrumentation, or WMI, has been mentioned on the site a few times previously. It allows you to get information about a PC from the computer itself. Today, I’m sharing about a free tool provided by Microsoft called WMI Code Creator. You can utilize WMI through the command line or with other languages like VBScript. You can use the WMI Code Creator to automate much of that code writing in VBScript, C#, and Visual Basic® .NET.

WMI Code Creator’s functionality isn’t unique. A previous tool from Microsoft called Scriptomatic used to do the same thing but, as far as I’m aware, hasn’t been updated since 2005 and didn’t work on Windows 7 the last time I tried it. There is also a PowerShell Scriptomatic out there that generates WMI code for PowerShell.

To use WMI Code Creator, you download the program from Microsoft and launch the executable. It’s a portable program with no install needed. When the program runs, you can choose the Namespace and classes you want to operate in. You then select any properties you want to query for their values (Control+Click to select multiple fields). You can run a “Search for Property Values” in order to see what your computer returns and select the value to constrain your search using WHERE conditionals. You can then copy the code, execute it, or send it to Notepad.

There are other tabs that allow you to execute specified methods, receive events, or browse namespaces. The tool is really great because it provides a nice library you can learn how to write the code on your own. You could also adapt it to command line code using WMIC.exe to suit your needs.

You can download WMI Code Creator from http://www.microsoft.com/en-us/download/details.aspx?id=8572

Filed Under: Code, Software

Trending

  • HP Smart Web Printing – Reducing paper and toner waste
    In Hardware, Gadgets, and Products, Software
  • Watch Mark Russinovich hunt malware with SysInternals tools
    In Security and Privacy
  • Extracting The .msi From The Latest Adobe Reader Setup Executable
    In Security and Privacy, Software, System Administration

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in