The 2011 Scripting Games Advanced Event 5: Use PowerShell to Determine Upgrade to Windows 7 Eligibility
Summary: Advanced Event 5 of the 2011 Scripting Games uses Windows PowerShell to determine if a computer is upgradable to the Windows 7 operating system.
About this event
Date of Event
4/8/2011 12:15 AM
4/15/2011 12:15 AM
Your company is planning an upgrade from Windows XP to Windows 7, and you get to write a script that will determine if a computer meets the requirements for the upgrade. Here are the requirements for the Windows 7 operating system:
- 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
- 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
- 16 GB available hard disk drive space (32-bit) or 20 GB (64-bit)
- DirectX 9 graphics device with WDDM 1.0 or higher driver
- Your solution should work on multiple computers.
- Your solution should accept piped input for the computer names.
- You should return a single object for each computer.
- Your code should be reusable.
- Your solution should have comment-based Help.
- Your solution should use error handling.
- Your solution should implement the –Debug switch.
- Extra design points if your solution detects if the computer in question would be best upgraded to a 64-bit (x64) or to a32-bit (x86) Windows 7 operating system.
2011 Scripting Games links
I invite you to follow me on Twitter and Facebook. If you have any questions, send email to me at email@example.com, or post your questions on the Official Scripting Guys Forum. Good luck as you compete in this year’s Scripting Games. We wish you well.
Ed Wilson, Microsoft Scripting Guy