2010 Scripting Games: Beginner Event 2–Retrieving Workstation Start Time


2010 Scripting Games badge Bookmark 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 27, 2010

Due Date

May 4, 2010


Event Scenario

You need to retrieve the time that a workstation started. Because you still have a mixture of Windows 7, Windows Vista, and Windows XP computers, you cannot confidently use any of the newer event log entries. Instead, your research has revealed that you can get a pretty good estimate of the time a workstation started by querying the event log for the entry that states when the event log started. The event log entry you are looking for is seen in the following image.

Image of desired event log entry


Your script should include the ability to run against a remote computer, and it should only return the most recent instance of this entry.


2010 Scripting Games Links


Ed Wilson and Craig Liebendorfer, Scripting Guys