Skip to content

PowerShell FileSystemWatcher

Powershell FileSystemWatcher - This script uses the .NETFileSystemWatcher class to subscribe to ‘create’, ‘change’ and ‘delete’ events on files or folders in the NTFS filesystem.It can be used to monitor a folder or folders, and can be modified to perform any action upon the triggering of these events.