This PowerShell script monitors a specified directory for file changes, including creations, deletions, and modifications. It logs these changes and generates SHA256 hashes to track file integrity.
- Monitors for file changes in real-time.
- Logs all changes to a log file.
- Generates and updates baseline SHA256 hashes for files.
- Detects file creations, deletions, and modifications.
- Windows operating system.
- PowerShell 5.0 or later.
- Clone the repository or download the script file.
- Place the script in a directory of your choice.
- Open PowerShell.
- Navigate to the directory where the script is located.
- Run the script using the following command:
.\file_integrity_monitor.ps1
- Enter the directory you want to monitor when prompted.