Skip to Content
Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
book

Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide

by Ed Wilson
October 2005
Beginner to intermediate
400 pages
12h 42m
English
Microsoft Press
Content preview from Microsoft® Windows® Scripting with WMI: Self-Paced Learning Guide
Chapter 3: Using Basic WMI Queries 59
defaults because they enable you to simplify your connection string to WMI. A default moni-
ker is "winmgmts:\\". When using the GetObject method, you could simplify your connection
string to the following:
Set objWMIService = GetObject("winmgmts:\\")
Understanding Data Queries
A data query is a query that retrieves basic WMI information. For example, if I want to know
how much physical memory I have in my server, I make a query into Win32_OperatingSystem
and ask for the FreePhysicalMemory property. Data queries are the most common types of que-
ries used in WMI.
You can use WQL to perform data queries. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® Scripting Self-Paced Learning Guide

Microsoft® Windows® Scripting Self-Paced Learning Guide

Ed Wilson

Publisher Resources

ISBN: 0735622310Catalog PageErrata