Showing tag results for Scripting Guy!

Jan 7, 2005
Post comments count0
Post likes count0

How Can I Share a Folder on a Remote Computer?

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

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

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

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
Jan 3, 2005
Post comments count0
Post likes count0

How Can I Determine the Account a Process is Running Under?

ScriptingGuy1

Hey, Scripting Guy! I’ve got a script that returns information about all the processes running on a computer, except I can’t seem to figure out how to get the name of the user account that these processes are running under. Can you help?-- DL Hey, DL. Yes, we can help. It’s actually fairly easy to determine which account a process is running und...

Scripting Guy!VBScriptoperating system