Created
September 7, 2015 13:41
-
-
Save ProgrammingWithHandGrenades/0a9b13e36b5176e18c85 to your computer and use it in GitHub Desktop.
September Scripting Games puzzle solution. One line, no semicolons, no curly braces.
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
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