Forked from ProgrammingWithHandGrenades/gist:0a9b13e36b5176e18c85
Last active
September 7, 2015 15:04
-
-
Save johnjohnsp1/ae5aa32bdd79d17ca310 to your computer and use it in GitHub Desktop.
September Scripting Games puzzle solution. One line, no semicolons, no curly braces.
This file contains hidden or 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
| Import-Csv .\input.csv | Add-Member -MemberType ScriptProperty -Name 'OSVersion' -Value $([scriptblock]::create('(Get-WmiObject Win32_OperatingSystem -ComputerName $this.MachineName).caption' )) -PassThru | Export-Csv output.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment