Showing results for December 2004 - Page 2 of 4 - Scripting Blog [archived]

Dec 15, 2004
0
0

How Can I Grab a URL From the Clipboard and Then Open That Web Site in a Browser?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I grab a URL from the clipboard and then open that Web site in a browser?-- CL Hey, CL. Interesting question, or, should we say, questions. That’s because there’s really two issues here. The first one is easy: can I use a script to open a specified Web site? As you probably know, the answer to that one is a ...

Scripting Guy!VBScriptusing the Internet
Dec 14, 2004
0
0

How Can I Rename an Active Directory Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I rename an Active Directory group?-- CL Hey, CL. This is actually pretty easy; as you’ll see, it only takes two lines of code. It’s not a hard problem, it’s just a little bit tricky. That’s because ADSI (at least when it comes to dealing with Active Directory) does not have a Rename method. Instead, you need ...

Scripting Guy!VBScriptActive Directory
Dec 13, 2004
0
0

How Can I Run a Script Under Alternate Credentials?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there a way for me to log on to a computer using a regular user account, but then run a script as a domain administrator?-- WW Hey, WW. In answer to your question, yes, both WMI and ADSI provide a way for you to run a script under alternate security credentials; that is, both allow you to specify a user name and a password...

Scripting Guy!scripting techniquesVBScript
Dec 10, 2004
0
0

How Can I Map Drives Based on Membership in a Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I map drives in a logon script based on a security group each user belong to?-- RO Hey, RO. Considering the fact that this question has been asked by approximately 3,755,392 of our readers - oops, there’s another one; make that 3,755,393 of our readers - we decided it might be a good idea for us to answer it. So ...

Scripting Guy!VBScriptActive Directory
Dec 9, 2004
0
0

How Can I Rename Files Based on the File’s Creation Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a folder that contains a bunch of log files. I would like to rename each file based on the date the file was created; for example, if a file was created on December 1, 2004, I’d like to rename it 20041201.log. Is that possible?-- CK Hey, CK. Listen, when it comes to scripting, anything is possible. (Well, except for ...

Scripting Guy!VBScriptstorage