Start-Transcript -path c:\temp\appver_$env:computername.txt
Trap { write "file not found: $_"; continue }
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\7z\7za.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\bc4\bcompare.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\Notepad++\notepad++.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\SumatraPDF\SumatraPDF.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\Sylpheed\sylpheed.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\IronPortable\Iron\chrome.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\chromium_x64\bin\chrome.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\pmp64\Bin\Palemoon\palemoon.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\totalcmd\totalcmd.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\apps\zeus\zeus.exe")
[System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:ProgramFiles\winrar\winrar.exe")
# [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:ProgramFiles (x86)\ramdisk\ramdisk.exe")
# [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:ProgramFiles\Oracle\VirtualBox\VirtualBox.exe")
if (test-path 'HKLM:\software\Microsoft\Windows\CurrentVersion\Uninstall\{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver') { gp 'HKLM:\software\Microsoft\Windows\CurrentVersion\Uninstall\{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver' | select displayname, displayversion, installdate | ft -autosize }
if (test-path 'HKLM:\software\wow6432node\Microsoft\Windows\CurrentVersion\Uninstall\{F0E3AD40-2BBD-4360-9C76-B9AC9A5886EA}') { gp 'HKLM:\software\wow6432node\Microsoft\Windows\CurrentVersion\Uninstall\{F0E3AD40-2BBD-4360-9C76-B9AC9A5886EA}' | select displayname, displayversion | ft -autosize }
gci $env:windir\system32\drivers\etc -filter hos* | select fullname, lastwritetime, length | ft -autosize
gci c:\apps -filter *.cmd | select fullname, lastwritetime, length | ft -autosize
get-appxpackage | ft name, installlocation
gwmi win32_product | ft identifyingnumber, version, name -wrap -autosize
# $ibiWMISet = @("Win32_ComputerSystem", "Win32_OperatingSystem", "Win32_BaseBoard")
# foreach ($ele in $ibiWMISet) { write $ele; gwmi $ele | ft -autosize }
Stop-Transcript
mv c:\temp\appver_*.txt \\kermit\logs\ -force
Comments