Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Use ADO to Open a Text File That has Spaces in the File Name?

(image) Hey, Scripting Guy! How can I use ADO to open a text file that has spaces in the file name?-- TL(image) (image) (image) Hey, TL. You might not even remember sending us this question; to say it’s been awhile would be an understatement. (You should have seen all the dust and cobwebs we had to brush off this question before we could...

Can I Get a List of All My User Accounts?

(image) Hey, Scripting Guy! Is there any way to get a list of all the user accounts in Active Directory?-- CB, Fremont, CA(image) (image) (image) Hey, CB. By far the quickest and easiest way to do this is to search Active Directory for all your user accounts. Here’s a sample script that searches the fabrikam.com domain; to search your own ...