Giter Club home page Giter Club logo

poshusnjournal's People

Contributors

proxb avatar thezim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

poshusnjournal's Issues

Get-UsnJournalEntry does not return anything on a non OS drive

I created a new journal on a non OS drive using a New-UsnJournal command.

Deleted a file on the drive.

Tried to do a Get-UsnJournalEntry and it did not return any results.

and I get WARNING: Issue occurred reading Usn entries!

Get-UsnJournal entry works on the OS drive though.

I tried the same on a different non OS drive as well, same thing happens.

Bug when importing module

Hi,
I have this error when, I'm trying to load module.
PS > Import-Module PoshUSNJournal
AVERTISSEMENT : Get-UsnJournal.ps1: Au caractère
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PoshUSNJournal\Scripts\Get-UsnJournal.ps1:29 : 5

  • [OutputType('System.Journal.UsnJournal')]
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Attribut inattendu « OutputType ».

Au caractère C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PoshUSNJournal\Scripts\Get-UsnJournal.ps1:30 : 5

  • Param ($DriveLetter = 'C:')
    
  • ~~~~~
    
    Jeton inattendu « Param » dans l'expression ou l'instruction.

Any idea why ?
Many thanks 💯
Regards,
Christophe

PS > $PSVersionTable

Name Value


PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.16394
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2

Bug with GetFilePath function

Via PowerShellGallery contact:

Hi,

I have found a bug in the module PoShUsnJournal. In the file PoShUsnJournal.psm1 at line 590: The function "GetFilePath" uses the parameter "PFileRefNumber" as an int64, but the USN-Journal itself uses Uint64! - the real problem is: [void][System.Runtime.InteropServices.Marshal]::WriteInt64($RefPtr, $PFileRefNumber) This does not work if you get a FileReferenceNumber thats too large for int64. Is it possible to write a bugfix?

best regards
chirsitian hiebler

Issue Processing FRN when larger than int64

I'm wrapping this module with my own script and whenever the FRN for a file is larger than 19 characters PoshUSNJournal throws the following exception.

Cannot convert argument "val", with value: "10261451750963675185", for "WriteInt64" to type "System.Int64": "Cannot
convert value "10261451750963675185" to type "System.Int64". Error: "Value was either too large or too small for an
Int64.""

I believe this may be because the FRN is being declared as an int64 value and I'm seeing FRN's larger than this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.