Please feel free to provide feedback or file bugs here.

PowerShell should have a cmdlet that supports best effort magic number parsing on files without extensions or incorrect extensions

Votes from Connect: 4

Original Date Submitted: 4/14/2015 8:18:28 AM

Description:
********Contact Information********
Handle: JasonHorner
Site Name: PowerShell
Feedback ID: 1246396
***************************************

Problem Description:
often we need to parse a file and not rely on its extension, while magic number parsing is imperfect it can provide some value.
this could be used for general file parsing as well as some security scenarios

Here is a script that implements this feature though I don't think it is completely robust:
http://powershell.com/cs/blogs/tips/archive/2010/08/09/reading-file-quot-magic-number-quot.aspx

unix support a similar capability via the file utility:
http://en.wikipedia.org/wiki/File_%28command%29

More info on magic number parsing:
http://en.wikipedia.org/wiki/List_of_file_signatures

Product Studio item created by Connect Synchronizer due to creation of feedback ID 1246396 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1246396).

Repro Steps:

Internal BugId: 14377

1 vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base