Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

using wmi dropbox

$
0
0

I received an assignment today in class asking me to perform this task.  Create a script using Powershell that meets the following requirements:

  • Contains appropriate comments (see about_comment_based_help)
  • Queries WMI and creates the following output suitable for the system information section of an Engineering Journal
    • OS - {Title of OS here} - ex: XP Professional
    • Service Pack - {Service Pack level here} - ex: 2
    • CPU - {CPU type and Speed here} - ex: Pentium 4 2.66 Ghz
    • HD Freespace - {Hard drive free space on the C: drive} - ex 22 GB
  • The script should be able to perform queries locally or remotely
  • Name the script systeminfo.ps1
  • Execute script and save output as computername.txt where computername is the name of the computer the information is obtained from (Ensure this syntax is document.  This is my second time working with the scripting language and I'm in need of so help!

Viewing all articles
Browse latest Browse all 6937

Trending Articles