Showing results for operating system - Scripting Blog [archived]

Feb 24, 2005
Post comments count0
Post likes count0

How Can I Write Binary Data to the Registry?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I write binary data to the registry?-- FG Hey, FG. WMI’s Standard Registry Provider includes a method - SetBinaryData - that makes it relatively easy to write binary data to the registry. There’s one little catch to be aware of, but we’ll let you know what that is. First, though, let’s take a look at a script that wri...

Scripting Guy!VBScriptoperating system
Feb 16, 2005
Post comments count0
Post likes count0

How Can I List Open Sessions and Open Files on a Computer?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! Is there a way to export the information found in the Shared Folders portion of the Computer Management snap-in (in particular, the list of sessions and the list of open files)?-- PP Hey, PP. Funny you should ask; this very issue came up the other day, and while we assumed that there was a way to get at this information...

Scripting Guy!VBScriptoperating system
Feb 14, 2005
Post comments count0
Post likes count0

How Can I Add a Web Site to the Trusted Sites Zone?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add a Web site to the Trusted Sites zone in Internet Explorer?-- NR Hey, NR. As it turns out, trusted sites are actually stored in the registry; consequently, adding a Web site is simply a matter of creating and configuring a new registry key. For example, suppose you want to trust Microsoft.com. (And, really, who d...

Scripting Guy!VBScriptoperating system
Jan 27, 2005
Post comments count0
Post likes count0

How Can I Determine the System Time on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to retrieve the system time as configured on a remote computer?-- JJ Hey, JJ. There are at least two ways to do this, both using WMI. If you’re running Windows XP or Windows Server 2003, you can use the WMI class Win32_LocalTime. As you can see, that makes it pretty easy to get the system time: you simply con...

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

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

ScriptingGuy1
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