Skip to content

Get-ForensicFileRecord throwing error #146

@colindix

Description

@colindix

Hi,

I noticed today that the get-forensicfilerecord cmdlet is throwing an error when attempting to parse the an MFT. I haven't seen this before, but unfortunately I wasn't able to test on another machine. I know it has worked for me previously but unsure if on this machine.
FYI the MFT isn't particularly large (304954 entries according to analyzeMFT.py).

PS C:\WINDOWS\system32> Get-ForensicFileRecord
Get-ForensicFileRecord : Non-negative number required.
Parameter name: count
At line:1 char:1

  • Get-ForensicFileRecord
  •   + CategoryInfo          : NotSpecified: (:) [Get-ForensicFileRecord], ArgumentOutOfRangeException
      + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,PowerForensics.Cmdlets.GetFileRecordCommand
    
    

PS C:\WINDOWS\system32> $stacktrace
at System.Text.UnicodeEncoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at PowerForensics.Ntfs.VolumeName..ctor(ResidentHeader header, Byte[] bytes, Int32 offset, String attrName)
at PowerForensics.Ntfs.FileRecordAttribute.Get(Byte[] bytes, Int32 offset, String volume)
at PowerForensics.Ntfs.FileRecordAttribute.GetInstances(Byte[] bytes, Int32 offset, Int32 bytesPerFileRecord, String volume)
at PowerForensics.Ntfs.FileRecord..ctor(FileRecord[]& recordArray, Byte[] bytes, Int32 offset, Int32 bytesPerFileRecord, String volume,
Boolean fast)
at PowerForensics.Ntfs.FileRecord..ctor(FileRecord[]& recordArray, Byte[] bytes, Int32 offset, Int32 bytesPerFileRecord, String volume,
Boolean fast)
at PowerForensics.Ntfs.FileRecord.GetInstances(Byte[] bytes, String volume, Boolean fast)
at PowerForensics.Ntfs.FileRecord.GetInstances(String volume, Boolean fast)
at PowerForensics.Ntfs.FileRecord.GetInstances(String volume)
at PowerForensics.Cmdlets.GetFileRecordCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions