Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Write Binary Data to the Registry?

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 ...

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

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, ...

How Can I Change the Legal Warning Message Using a Script?

Hey, Scripting Guy! How can I use a script to change the legal warning message on a computer?-- RB Hey, RB. As you all probably know, when you press Ctrl-Alt-Delete to log on to Windows, you’re typically presented with a logon box. You type your user name, domain, and password in the box, click OK, and away you go. However, Windows ...

Can I Create and Delete a DSN Using a Script?

Hey, Scripting Guy! Is it possible to create an ODBC Data Sources Name (DSN) on the fly and then remove it when done?-- KC Hey, KC. Is it possible to create and then delete an ODBC DSN? To tell you the truth, we weren’t entirely sure. As it turns out, however the answer is this: as long as you’re willing to write a script that modifies ...

Feedback usabilla icon