Showing tag results for scripting techniques

Nov 30, 2004
Post comments count0
Post likes count0

Can I Edit .INI Files Using a Script?

ScriptingGuy1

Hey, Scripting Guy! Can I edit.INI files using a script?-- MZ Hey, MZ. Yes, you can edit .INI files (or any kind of text files, for that matter) using a script. The method you have to use might not be the most elegant process in the world, but it’ll work. And that’s all we really care about, right? Before we get into the whys and wherefores of e...

Scripting Guy!scripting techniquesVBScript
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 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 16, 2004
Post comments count0
Post likes count0

Can I Read an Entire Text File Rather Than Reading It Line-by-Line?

ScriptingGuy1

Hey, Scripting Guy! Right now I use a script to open a text file containing computer names. The script reads the first line of the file and connects to that computer, then reads the second line of the file and connects to that computer. Is there a way to store those names in a variable or something, so that I don’t have to keep reading the text f...

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

How Can I Make Selections from a Form When Using a Script?

ScriptingGuy1

Hey, Scripting Guy! I’d like to have a form with four radio buttons on it, each button representing a different computer. You choose a radio button, click another button, and then a script runs against the computer you selected. How do I do that?-- CW Hey, CW. If we’re talking strictly VBScript and Windows Script Host, the answer is simple: you ...

Scripting Guy!scripting techniquesVBScript