Skip to content

Extracts content from P7M files using PowerShell for fast automated extraction. Decodes digitally signed & encrypted files saved to a specified folder.

Notifications You must be signed in to change notification settings

marco-zorzi/p7m-fast-extractor-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

P7M Fast Extractor (PowerShell)

This PowerShell script extracts the content from P7M files and saves it to a specified folder. P7M files are a type of file that is digitally signed and encrypted using the S/MIME standard. This script is specifically designed for fast automated extraction of P7M file contents using PowerShell.

Features

  • Extracts content from P7M files using PowerShell for fast automated extraction.
  • Decodes digitally signed and encrypted files and saves them to a specified folder.
  • Uses the System.IO and System.Security assemblies to read P7M files and decode the content.

Getting Started

Prerequisites

Before running the script, you need to make sure that you have the following installed:

  • PowerShell (version 5.0 or later)
  • .NET Framework (version 4.6 or later)

Installation

To use this script, you need to follow these steps:

  1. Clone this repository or download the zip file and extract it to a local directory.
  2. Open PowerShell and navigate to the directory where the script is located.
  3. Run the script by calling the extract_content_from_p7m_file function with the appropriate parameters.

Script Parameters

Parameter Type Description
SourceFolder String Path to the folder containing .p7m files
DestinationFolder String Path to the folder where extracted files are saved

Usage

Invoke the cmdlet positionally:

.\extract_content_from_p7m_file.ps1 "C:\P7M_Files" "C:\Extracted_Content"

License

This script is licensed under the MIT License. You are free to use, modify, and distribute this script as long as you include the license file.

Contributing

If you find any issues or have suggestions for improvements, feel free to create an issue or pull request. All contributions are welcome!

About

Extracts content from P7M files using PowerShell for fast automated extraction. Decodes digitally signed & encrypted files saved to a specified folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published