Showing archive results for 2006

Nov 22, 2006
Post comments count0
Post likes count0

How Can I Locate a Value in a Text File and Then Parse the Line of Text Where the Value Was Found?

ScriptingGuy1

Hey, Scripting Guy! How can I open a CSV file, locate a value in column 1, then store the value in column 2 in a variable?-- THvdH Hey, HvdH. We have to be honest with you, it’s a little difficult for the Scripting Guy who writes this column to stay focused on his work today. After all, tomorrow is one of the biggest and best of all holidays in th...

Scripting Guy!scripting techniquesVBScript
Nov 21, 2006
Post comments count0
Post likes count0

How Can I Add a Function to a Windows PowerShell Script?

ScriptingGuy1

Hey, Scripting Guy! How can I add a function to a Windows PowerShell script?-- TT Hey, TT. You know, we’re going to do something a little unusual today: we aren’t going to mention the fact that the University of Washington defeated Washington State University in the annual Apple Cup football game. Granted, that’s the kind of thing we typically wou...

Scripting Guy!Windows PowerShellscripting techniques
Nov 20, 2006
Post comments count0
Post likes count0

How Can I Add a User to a Group If I Don’t Know the Distinguished Name of That User?

ScriptingGuy1

Hey, Scripting Guy! How can I add a user to an Active Directory group if I don’t know the distinguished name of that user?-- VO Hey, VO. You know, if we wanted to take the easy way out here we’d just tell you, “Sorry, but if you don’t know the distinguished name of the user you can’t add that user to an Active Directory group.” In other words, ...

Scripting Guy!VBScriptActive Directory
Nov 17, 2006
Post comments count0
Post likes count0

How Can I Delete All the .BAK Files in a Folder That Are More Than 7 Days Old?

ScriptingGuy1

Hey, Scripting Guy! How can I delete all the .BAK files in a folder that are more than 7 days old?-- KT Hey, KT. You know, on his way to work this morning the Scripting Guy who writes this column heard an advertisement for a local seafood restaurant. Now, this Scripting Guy doesn’t like seafood, so he normally wouldn’t pay any attention to an ad f...

Scripting Guy!VBScriptstorage
Nov 16, 2006
Post comments count0
Post likes count0

How Can I Create a New Registry Key?

ScriptingGuy1

Hey, Scripting Guy! How can I create a new registry key?-- DL Hey, DL. First of all, for those of you who get all your news from the Hey, Scripting Guy! column (as if there was any other source for news and information?) we are happy to report that the University of Washington men’s basketball team defeated a very good Northern Iowa squad 70-61 to...

Scripting Guy!VBScriptoperating system