2010 Scripting Games: Beginner Event 1–Updating and Creating Registry Keys



2010 Scripting Games badgeBookmark and Share


Note: We are no longer accepting entries for this event. See the due dates page for a list of all event due dates.

About This Event



Date of Event

April 26, 2010

Due Date

May 3, 2010


Event Scenario

The boss has decided you need to check computers on the network. After the check has been completed, a registry key needs to be updated with the date and time of the check. You should test for the existence of the registry key, and if the registry key does not exist, it should be created. If the registry key does exist, it only needs to be updated.

Because this script will be called from a logon script, it does not need the ability to run against a remote machine. We are not concerned in this script with the code that performs the check, only the code that updates the registry key. The registry key should look like the one shown in the following image.

Image of how the registry key should appear


2010 Scripting Games Links


Ed Wilson and Craig Liebendorfer, Scripting Guys