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:
You might recognize this from the previous chapter, and you might spot what’s changed. ...