Aug 152008
Why I love Powershell:
Yesterday I needed to create an overview of people, their department name and office location. I wanted to have this list in Excel. But all I had was a textfile with their names. A tedious task to fill in all this information, one might think. Luckily, I know Powershell:
Get-Content "D:scriptspeople.txt" | % { Get-QADUser -Name $_ } | Select-Object Name, Department, Office | Export-Csv -Path "D:scriptsoverview.csv" -NoTypeInformation
This simple oneliner generated the entire overview for me in the blink of an eye! My colleagues were flabbergasted :)
Gotta love it.
No related posts.

Now that is cool !