Chapter 12. Working with the File System


You’d be surprised how often you might need to access a computer’s file system from within an administrative script. For example, a script that adds new users to the domain might need to read those names from a script, or might need to write out new passwords into a file. A script designed to query TCP/IP addresses from workstation computers will need to write that information some-where—why not a text file? File system access is almost a prerequisite for any number of useful scripts, even ones that don’t ...

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.