Showing results for ActiveX Data Objects (ADO) - Scripting Blog [archived]

Jan 27, 2006
Post comments count0
Post likes count0

How Can I Count the Number of Computers in a Domain?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I count the number of computers in a domain?-- TN Hey, TN. Here’s a true story for you. About 5 years ago, when one of the Scripting Guys first started at Microsoft, his group here (which might not be the most technically-savvy group at the company) needed to get a count of all our computers. How did they do that? Why...

Scripting Guy!VBScriptActive Directory
Jan 23, 2006
Post comments count0
Post likes count0

How Can I Add a User to a Group, but Only if that User is a Member of the IT Department?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add a user to a group, but only if that user is a member of the IT department?-- JV Hey, JV. You know, this is your lucky day: not only are we going to show you how you can add a specified user to a group (assuming, of course, that this user is a member of the IT department), but we’re also going to show you a way t...

Scripting Guy!VBScriptActive Directory
Nov 15, 2005
Post comments count0
Post likes count0

How Can I Use ADO to Read a Text File Where All the Data is on a Single Line?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a fixed-width text file which includes first name (6 characters), last name (13 characters), and department (9 characters) all on a single line. How do I read that using ADO?-- DW Hey, DW. Well, to be perfectly honest, we don’t think you can read a file like this using ADO (ActiveX Data Objects). ADO is a fantastic way...

Scripting Guy!scripting techniquesVBScript
Oct 19, 2005
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Configure the Hide From Exchange Address Lists Property for All the Contacts in a Domain?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I configure the Hide From Exchange Address Lists property for all the contacts in a domain?-- MM Hey, MM. You know what the say: you can run, but you can’t hide (especially from Microsoft Exchange!). But what they forgot to add is that you can hide, as long as you’ve set the value of the MSExchHideFromAddressLists att...

Scripting Guy!scripting techniquesVBScript
Oct 6, 2005
Post comments count0
Post likes count0

How Can I Verify that None of My Local User Accounts have a Blank Password?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I verify that none of my local user accounts have a blank password?-- TB Hey, TB. To begin with, we should point out that at least some of you won’t need to make this check on computers within your domain; that’s because you’re using password policies in the domain that would prohibit the use of a blank password. (For...

Scripting Guy!VBScriptActive Directory