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.