October 7th, 2013

PowerTip: Use PowerShell to Obtain Disk Image Info

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find basic disk image information.

Hey, Scripting Guy! Question How can I find basic information about the disk images on my Windows 8-based computer?

Hey, Scripting Guy! Answer Use Get-ChildItem to find all of the *.iso files in your directory, pipe the results to Foreach-Object,
          then call Get-DiskImage in the script block, and pass the FullName from the FileInfo object:

Get-ChildItem -Filter *.iso -Recurse | foreach { Get-DiskImage -ImagePath $_.fullname }

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.