Powershell script to retrieve file version information.

#Extracts file version information from arbitrary files
#This list of files was specified by Microsoft for a specific fault,
#but you could enter any file.

$msicsiFile = get-item C:\Windows\System32\Drivers\msiscsi.sys
$mpioFile = get-item C:\Windows\System32\Drivers\mpio.sys
$storportFile = get-item C:\Windows\System32\Drivers\storport.sys
$volsnapFile = get-item C:\Windows\System32\Drivers\volsnap.sys
$msdsmFile = get-item C:\Windows\System32\Drivers\msdsm.sys
$tcpipFile = get-item C:\Windows\System32\Drivers\tcpip.sys
$clusdiskFile = get-item C:\Windows\System32\Drivers\clusdisk.sys
$bcomFile = get-item C:\Windows\System32\drivers\b57nd60a.sys

$msicsiFile.VersionInfo
$mpioFile.VersionInfo
$storportFile.VersionInfo
$volsnapFile.VersionInfo
$msdsmFile.VersionInfo
$tcpipFile.VersionInfo
$clusdiskFile.VersionInfo
$bcomFile.VersionInfo

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s