Unleashing the Power of the StdRegProv ClassThe importance of the StdRegProv class is the power it brings to a script. In Chapter 1, "Starting from Scratch," our tutorial script illustrated using RegRead. You could follow the same methodology and use the RegWrite and RegDelete methods of WshShell, but there are limitations to using WshShell to work with the registry: You cannot work remotely, and there is no enumeration. However, all problems are resolved by using StdRegProv. It has 16 methods defined. These methods and a description of what they can do are listed in Table 17-2.
One useful task you can perform as a network administrator is to create a key in the registry that you use to keep track of certain machines. This is similar to a trick I used to use with the Microsoft Systems Management Server product, where I placed a certain text file in the root drive of the workstation and used the presence of the file in creating ad hoc Systems Management Server (SMS) collections. Just the Steps ![]() |