My Profile Photo

${Graham Beer} = 'blog'


Infrastucture Engineer, PowerShell Developer, WinOps and Automation


The System.IO.FileSystemWatcher .NET Class: Raise file system notifications in PowerShell

The use of .NET classes can extend PowerShell’s reach. In this article I will be looking at the System.IO.FileSystemWatcher .NET class and how you can use it to raise notifications on files and directories.

PowerShell doesn’t do restrictions, and when you can’t achieve something one way, there is most probably another way with PowerShell’s extension ability. To use an example of notifying about file system changes, we can delve into .NET classes. 4sysops article continues here…