Last active
September 5, 2015 20:49
-
-
Save IISResetMe/cfa069600273e93361de to your computer and use it in GitHub Desktop.
2015 Scripting Games - September puzzle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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