Learn about Windows PowerShell
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
May 3, 2010
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.
2010 Scripting Games Links
2010 Scripting Games home page
Submit your scripts on PoshCode.org
2010 Scripting Games Forum
Support our sponsors!
Ed Wilson and Craig Liebendorfer, Scripting Guys