Showing tag results for VBScript

Nov 23, 2004
Post comments count0
Post likes count0

How Can I Run a Script Against a Range of IP Addresses?

ScriptingGuy1

Hey, Scripting Guy! I’d like to run a script against all the computers on a subnet. Is there a way to do that without having to hardcode all the IP addresses into the script?-- RB Hey, RB. Based on your email, it sounds like you have a setup similar to this: you have a subnet with IP addresses ranging from 192.168.1.1 to 192.168.1.254. You’d lik...

Scripting Guy!scripting techniquesVBScript
Nov 22, 2004
Post comments count0
Post likes count0

How Can I List the Members of a Group in Alphabetical Order?

ScriptingGuy1

Hey, Scripting Guy! I have a script that returns the names of all the users in an Active Directory group. How can I sort those names in alphabetical order?-- JW Hey, JW. Ah, yes, sorting data: the bane of script writers everywhere. Unfortunately, VBScript doesn’t have a built-in sorting mechanism, and neither does ADSI. Consequently, most p...

Scripting Guy!VBScriptActive Directory
Nov 19, 2004
Post comments count0
Post likes count0

How Can I Put New Users in the Same OU as the Person Creating Their Accounts?

ScriptingGuy1

Hey, Scripting Guy! We use a script to create user accounts. How can I modify this script so that it will place the new user in the same OU as the person running the script?-- CB Hey, CB. Interesting question. We’re assuming that you’ve delegated control of Active Directory. User A, for example, has the right to create users in the Finance OU, b...

Scripting Guy!scripting techniquesVBScript
Nov 18, 2004
Post comments count0
Post likes count0

Can I Use a Script to Determine the Size of a Folder on a Remote Computer?

ScriptingGuy1

Hey, Scripting Guy! Can I use a script to determine the size of a folder on a remote computer?-- SS Hey, SS. Boy, you’d think you’d be able to do that, wouldn’t you? Especially if you’ve glanced through the WMI class Win32_Directory and noticed the property FileSize. Based on that, you might think, “Well, obviously I could just write a WMI scrip...

Scripting Guy!VBScriptstorage
Nov 17, 2004
Post comments count0
Post likes count0

Hey, Scripting Guy! Is There Any Way to Determine the Default Printer On a Computer?

ScriptingGuy1

Hey, Scripting Guy! Is there any way to determine the default printer on a computer?-- JW Hey, JW. If you’re running Windows XP or Windows Server 2003, determining the default printer is easy. That’s because the WMI class Win32_Printer found on these versions of Windows includes a property named Default. As the name implies, this property tells ...

Scripting Guy!VBScriptprinting