2010 Scripting Games: Beginner Event 7–Displaying Names of Installed Administrative Tools


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

May 4, 2010

Due Date

May 11, 2010


Event Scenario

You are tired of trying to work on a workstation that does not have administrative tools available. You decide to write a script that will run locally and will display the name of each administrative tool that is installed on the computer. Because there could potentially be a lot of administrative tools installed on a computer, if you are writing in VBScript you must check to ensure the script is running under CScript. If the script is not running in CScript, you must exit the script. For people writing in Windows PowerShell, you must check to see if the script is running inside the Windows PowerShell ISE. If it is, you must exit the ISE (this is an arbitrary requirement that is meant to bring a little parity between VBScript requirements and Windows PowerShell requirements; however, knowing the Windows PowerShell host name is a useful technique in and of itself). Your output display should look something like the following image.

Image of how output display should look


Design Points

·         Your script only needs to run locally.

·         There is no need to log the administrative tools—only display them.

·         Style points awarded if you display a summary message that states how many tools are installed.


2010 Scripting Games Links


Ed Wilson and Craig Liebendorfer, Scripting Guys