Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Last active September 5, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IISResetMe/cfa069600273e93361de to your computer and use it in GitHub Desktop.
Save IISResetMe/cfa069600273e93361de to your computer and use it in GitHub Desktop.
2015 Scripting Games - September puzzle
# Most straighforward way I can think of
# 2 pairs of curly braces and a single semicolon for the calculated OSVERSION property
Import-Csv .\input.csv |Select-Object -Property MACHINENAME,@{Label='OSVERSION';Expression={(Get-WmiObject Win32_OperatingSystem -ComputerName $_.MACHINENAME).Caption}} | Export-Csv .\output.csv -NoTypeInformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment