How to Monitor Folder for New Files

We care about security of your data. Privacy Policy
Native Auditing Netwrix Auditor for Windows File Servers
  1. Open the PowerShell ISE → Run the following script, adjusting the path to the directory and the timeframe:

Get-ChildItem -Path \\pdc\Shared\Accounting\*.* -Filter * | ? {
   $_.LastWriteTime -gt (Get-Date).AddDays(-1)

  1. Review the results:
Powershell new files report
  1. Run Netwrix Auditor → Navigate to "Reports" → Open "File Servers" → Go to "File Servers Activity" → Select "Files and Folders Created" → Click "View".

Monitoring a folder for new files is easy with Netwrix Auditor — simply choose the "Subscribe" option and define the schedule and recipients.

Netwrix Auditor Files and Folders Created: Shows newly created files and folders

Monitoring a Folder Using PowerShell Scripting

A folder that contains sensitive data should not be getting new files without your knowledge. To stay informed about new files in important folders, you can make a point of manually executing a simple PowerShell script on a regular basis to get all files created or modified after you last ran the script. The PowerShell script provided above searches a folder on a Windows share for new objects and outputs the results to your console window.

But why not streamline the process with Netwrix Auditor for Windows File Servers? Simply run a predefined report and you’ll get not just the list of new files, but also additional actionable details, such as which users created the new files in the directory. Monitoring for new files in a secure location using this report helps you keep your data secured without having to check and decipher the system event logs. You can even subscribe to the report and receive it on schedule right to your inbox. Even better, you can create an alert and get notified every time a new file is created in the secure location.