Showing archive results for 2005

Jan 26, 2005
Post comments count0
Post likes count0

How Can I Retrieve Information From My Event Logs Regarding Unsuccessful Logons?

ScriptingGuy1

Hey, Scripting Guy! How can I scan the event logs of my servers and return only information about unsuccessful logons?-- LC Hey, LC. We’ll assume that you have enabled security auditing on your servers. If you haven’t, that’s step one. What you’ll want to do is - at a minimum - audit for logon event failures. That way every time someone tries - ...

Scripting Guy!VBScriptLogs and monitoring
Jan 25, 2005
Post comments count0
Post likes count0

How Can I Read Just a Single, Specified Line from a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I read only a specific line in a text file? For example, how can I write a script that reads only line 16 in a text file and then stores the value of that line in a variable?-- DL Hey, DL. You know we haven’t answered a question about text files in awhile, and that’s not something we should brag about; after all, it s...

Scripting Guy!scripting techniquesVBScript
Jan 24, 2005
Post comments count0
Post likes count0

How Can I Determine the Next Available Drive Letter on a Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I determine the next available drive letter on a computer?-- TW Hey, TW. Interesting question, and one that crops up from time-to-time. In the old days, when users only had drives A, B, and C, this was easy; you could pretty much guess that any drive letter other than those three would be available. Nowadays, though, ...

Scripting Guy!scripting techniquesVBScript
Jan 21, 2005
Post comments count0
Post likes count0

How Can I Find and Move an Active Directory Computer Account?

ScriptingGuy1

Hey, Scripting Guy! I need to move a computer account from one OU to another; however, I don’t know which OU the computer account is currently in. Any advice?-- AA Hey, AA. You know, one thing that marks all the great advice columns - Dear Abby; Ann Landers; Hey, Scripting Guy! - is the fact that, over time, these columns tend to give the same a...

Scripting Guy!VBScriptActive Directory
Jan 20, 2005
Post comments count0
Post likes count0

How Can I Tell Which Switches Were Used When Starting an Executable File?

ScriptingGuy1

Hey, Scripting Guy! Is there any way to tell which command-line arguments (if any) were used when starting an executable file?-- TO Hey, TO. We don’t mean to cause a scandal in the scripting world - well, OK, we don’t mean to cause any more scandals in the scripting world. But - gasp! - we’re going to cheat a little bit here. This is the first t...

Scripting Guy!VBScriptoperating system