GZ
Visiting Expert
As soon as I get home, John!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
# =============================================================================
#
# NAME:DisplayMetaData.ps1
#
# AUTHOR: Ed Wilson , microsoft
# DATE : 8/10/2008
#
# COMMENT:
# Uses Params to allow modification of script at runtime
# Uses shell.application com object to obtain meta data
# Uses funLine function to underline output
#
# =============================================================================
param($folder = "C:\Windows\System32\Drivers") #end param
Function funLine($strIN)
{
$strLine = "=" * $strIn.length
Write-Host -ForegroundColor Yellow "`n$strIN"
Write-Host -ForegroundColor Cyan $strLine
} #end funline
Function funMetaData()
{
foreach($sFolder in $folder)
{
$a = 0
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.namespace($sFolder)
foreach ($strFileName in $objFolder.items())
{ FunLine( "$($strFileName.name)")
for ($a ; $a -le 266; $a++)
{
if($objFolder.getDetailsOf($strFileName, $a))
{
$hash += @{ `
$($objFolder.getDetailsOf($objFolder.items, $a)) =`
$($objFolder.getDetailsOf($strFileName, $a))
} #end hash
$hash
$hash.clear()
} #end if
} #end for
$a=0
} #end foreach
} #end foreach
} #end funMetadata
# *** Entry Point ***
funMetaData
Name Value
---- -----
Name 1394bus.sys
Size 53.5 KB
Item type System file
Date modified 7/13/2009 7:51 PM
Date created 7/13/2009 7:51 PM
Date accessed 7/13/2009 7:51 PM
Attributes A
Perceived type System
Owner Administrators
Rating Unrated
Copyright © Microsoft Corporation. All rights reserved.
Company Microsoft Corporation
File description 1394 Bus Device Driver
Computer BBY00549W074 (this computer)
Filename 1394bus.sys
File version 6.1.7600.16385
Shared No
Folder name drivers
Folder path C:\Windows\System32\drivers
Folder drivers (C:\Windows\System32)
Path C:\Windows\System32\drivers\1394bus.sys
Type System file
Language English (United States)
Link status Unresolved
dir /a /s C:\ProgramData\Microsoft\Windows\WER\ReportQueue\*.xml
C:\Windows\system32>dir /a /s C:\ProgramData\Microsoft\Windows\WER\ReportQueue\*.xml
Volume in drive C is Windows7 x64
Volume Serial Number is 289F-AF69
Directory of C:\ProgramData\Microsoft\Windows\WER\ReportQueue\Kernel_0_0_cab_06570a88
11/06/2011 11:51 257,492 [COLOR="#FF0000"]WER-298244443-0.sysdata.xml[/COLOR]
11/06/2011 11:51 1,940 [COLOR="#FF0000"]WERA49.tmp.WERInternalMetadata.xml[/COLOR]
2 File(s) 259,432 bytes
Directory of C:\ProgramData\Microsoft\Windows\WER\ReportQueue\Kernel_0_0_cab_10002219
11/13/2011 12:22 252,982 [COLOR="#FF0000"]WER-28839202-0.sysdata.xml[/COLOR]
11/13/2011 12:22 1,940 [COLOR="#FF0000"]WER2219.tmp.WERInternalMetadata.xml[/COLOR]
2 File(s) 254,922 bytes
Total Files Listed:
4 File(s) 514,354 bytes
0 Dir(s) 12,223,918,080 bytes free
C:\Windows\system32>dir /a /s C:\ProgramData\Microsoft\Windows\WER\ReportQueue\*.xml
I think that this would be ideal! Thanks!I could put together a fairly simple program to run the Powershell script on all .sys files, for example, and then output the info to a .csv file.
Has Sysnative Forums helped you? Please consider donating to help us support the site!