I need to find a way to automatically rename all files that are created within a specific directory on a Windows 2008r2 file server. This needs to be done more or less instantanously, so I can't have a scheduled job run every 5 minutes or so.
I've done some research and figured out that I may be able to do this by scheduling a task to trigger on WMI events signalling file creation, but I really don't know how to get started so I need some pointers.
To create a PS script that locates the file and renames it would be easy enough, but I really don't know how to trigger the script on the correct event.


