Showing archive results for January 2005

Jan 10, 2005
Post comments count0
Post likes count0

How Can I Determine Which Version of Word is Installed on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine which version of Word is installed on a computer?-- RR Hey, RR. Turns out that this is a trickier question than you might expect. That’s because WMI does only a so-so job of retrieving information about the software installed on a computer. In theory, you can use a script like this one to get back version ...

Scripting Guy!VBScriptversion information
Jan 7, 2005
Post comments count0
Post likes count0

How Can I Share a Folder on a Remote Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I share a folder on a remote computer?-- RS Hey, RS. One of the great things about WMI is the fact that - with one or two fairly obscure exceptions - anything you can do on the local computer you can also do on a remote computer. This is the big advantage scripting has over command line tools; a number of command line...

Scripting Guy!VBScriptstorage
Jan 6, 2005
Post comments count0
Post likes count0

How Can I Tell On What Date an Active Directory User Account Was Created?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to tell the date that an Active Directory user account was created?-- DD Hey, DD. And thanks: between the work that piled up over the holidays, the upcoming Scripting Week 2, and a nasty flu bug that’s going around, it’s nice to have a question that can be answered with just two lines of code. That’s right: t...

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

How Can I Prompt a User to Delete (or Not Delete) a Computer Account?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I delete a computer account from Active Directory, but provide a Yes/No prompt to the user before the account is actually deleted?-- NM Hey, NM. Let’s start by showing you how to delete a computer account from Active Directory. But don’t worry; that won’t take long. In fact, it only takes two lines of code:Set objComp...

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

How Can I Return Only the Last Record Written to an Event Log?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I read only the last record written to an event log? In other words, what is the WMI equivalent to the SQL statement Select Top 1?-- KM Hey, KM. Well, as it turns out WMI doesn’t have an equivalent to the Select Top command; for better or worse, the WMI Query Language (WQL) has only a small subset of the commands foun...

Scripting Guy!VBScriptLogs and monitoring