I am new at powershell scripting. I am asking for help. I have to create a script to upload folders from a fileserver to sharepoint. The script must monitoring that location( folder). And when a new folder is created ( at the same location on the server) run.
I am not sure can you hook up to the folder creation event. But what you could do is to have PowerShell set up as windows scheduled tasks. Have an csv file with existing folders to compare. If the comparison shows difference then create new folders and update the csv file. You could set it up in the scheduler to run every few minutes, it won't be real time but close to.