Plug-n-Copy allows you to secretly copy files from a USB drive to a destination folder when it's plugged in.
Plug-n-Copy
├── Scripts
├ ├── Register-PlugNCopy.ps1
├ ├── Unregister-PlugNCopy.ps1
├── Plug-n-Copy.psd1
├── Plug-n-Copy.psm1
├── README.md
- Install the Plug-n-Copy module from Powershell Gallery by running the following command:
Install-Module -Name "Plug-n-Copy"
- Register USB monitoring and file copying:
Register-PlugNCopy -Destination "C:\Destination"
The -Destination
parameter specifies the destination folder where the files will be copied. The -ShowMessage
switch can be used to display the file copied message on the terminal.
-
Plug in a USB drive. The module will detect the connection and copy the files to the specified destination folder.
-
When you're done, unregister USB monitoring and clean up variables:
Unregister-PlugNCopy
Enjoy using Plug-n-Copy!
For more details on the parameters and usage, run:
Get-Help Register-PlugNCopy -Detailed