Created
September 10, 2015 12:45
-
-
Save jeffbuenting/851e0e874add7d8dd632 to your computer and use it in GitHub Desktop.
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 f:\temp\input.csv | foreach {$_ | Add-Member -MemberType NoteProperty -PassThru -Name OSVersion -Value ( gwmi -class Win32_OperatingSystem -ComputerName ($_.MachineName)).Caption } | export-csv f:\temp\output.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment