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 11: Using Operating System Classes 235
mind that this is a proposed maximum size—and it takes effect only after a reboot, if allowed
by the operating system. This is one of the changes in Windows XP and Windows Server 2003
that was made to reduce the likelihood of misconfiguration—the value supplied here is only a
proposal. If the operating system detects an entry (such as one that is smaller than the current
registry size), it will write to the event log and politely ignore your suggestion.
GetWin32_Registry.vbs
strComputer = "."
wmiNS = "\root\cimv2"
strPath = "'Microsoft Windows XP Professional|C:\WINDOWS|\Device\Harddisk0\Partition1'"
wmiQuery = "Win32_Registry.name=" & strPath
WScript.echo wmiquery
Set objWMIService = ...
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