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 30, 2010
May 7, 2010
You are in the process of planning an upgrade from Windows XP to Windows 7, and you want to ensure that your computers will have enough video memory to run Windows Aero. You have determined that you want systems to have at least 128 MB of video RAM.
You decide to write a script to obtain the video memory from local and remote computers. The script should display the amount of video RAM by using the largest possible unit of measure. For example, if the computer has 1 or more GB of video memory, you should display results in GB. If the system has 128 MB of video RAM, you should use MB.
If you write Windows PowerShell code, you can display results directly to either the Windows PowerShell console or inside the Windows PowerShell ISE. If you use VBScript, you should display the results inside the cmd prompt and not in a message box. This output is shown in the following image.
· Style points given for reusable code.
· Your script should automatically determine the units to display the video memory.
· Your script should be able to run against multiple remote computers at same time.
· Your script should ensure that a remote computer is reachable before attempting the connection to retrieve the video RAM.
· If the memory is less than 128 MB, your script should state that the computer must be upgraded.
· If the memory is 128 MB or more, your script should state that the computer is ready to be upgraded.
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