Chapter 21. Testing and Debugging WMI and ADSI Queries

IN THIS CHAPTER

I think that one of the most frustrating parts about scripting is debugging Windows Management Instrumentation (WMI) and Active Directory Services Interface (ADSI) scripts that look like they should work perfectly—but which don’t do what I expect them to. In other words, the script code itself looks perfect, but for some reason the script just doesn’t do anything. Take this as a quick example of what I’m talking about:

image

You might recognize this from the previous chapter, and you might spot what’s changed. ...

Get VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.