Showing category results for Scripting

Aug 27, 2004
Post comments count0
Post likes count0

How Can I Determine the Day of the Week?

Doctor Scripto

Hey, Scripting Guy! I have a script that does certain management tasks based on the day of the week. I know how get the date in a script, but how can I tell whether it’s a Monday or a Tuesday or whatever? -- CT, Tallahassee, FL Hey, CT. This is actually much easier then it might sound; that’s because VBScript has a built...

Scripting Guy!Windows PowerShellguest blogger
Aug 26, 2004
Post comments count0
Post likes count0

Can I Change the Command Window Title When Running a Script?

ScriptingGuy1

Hey, Scripting Guy! When I run a batch file, I can use the Title command to change the caption of the command window. Can I change the caption of the command window from within a script?-- AA, Yokohama, Japan Hey, AA. Well, yes, as long as you’re willing to open up a new command window. If you are, then you can use code similar to this: Notice wha...

Scripting Guy!scripting techniquesVBScript
Aug 25, 2004
Post comments count0
Post likes count0

Why am I Getting an Error when Trying to Determine an IP Address?

ScriptingGuy1

Hey, Scripting Guy! I’m trying to determine the IP address on a computer, but I keep getting a Type Mismatch error. Do you know why? -- AQ, Jacksonville, FL Hey, AQ. As a matter of fact, we do know why you’re getting a Type Mismatch error, and it’s a common problem when working with the WMI class Win32_NetworkAdapterConfiguration. The line in your...

Scripting Guy!scripting techniquesVBScript
Aug 24, 2004
Post comments count0
Post likes count0

Why Doesn't My Search Return All My User Accounts?

ScriptingGuy1

Hey, Scripting Guy! I’m trying to pull a list of all my users out of Active Directory. I’m using ADO to search for these users, but no matter what I do I can only get 1,000 user names, even though we probably have 10 times that many user accounts. What could I be doing wrong?-- MC, Athens, GA Hey, MC. Boy, if we had a nickel for every time we’ve b...

Scripting Guy!VBScriptActive Directory
Aug 23, 2004
Post comments count0
Post likes count0

Can I Change the Current Directory When Running a Script?

ScriptingGuy1

Hey, Scripting Guy! Can I change the current directory while my script is running?-- KO, Kalispell, MT Hey, KO. Yes, you can change the current directory while a script is running, provided you are running Windows Script Host 5.6, that is. To change the current directory, all you have to do is create an instance of the Wscript.Shell object, and th...

Scripting Guy!scripting techniquesVBScript