Powershell gives you many options to administrate your farm, but it also can help you to get certain jobs done regularly. In one of my customer projects it was necessary to copy a certain document from library A to library B each month on the same day.
We created therefore a small powershell script which does the job including logging. Now we added it to the windows task scheduler and configured it for our needs. In the action tab we added an action which starts a program. We typed in there powershell and added the powershell script as parameter.
Parameter: -file “C:\Users\pohnke\Downloads\CopyFileToAnotherLibrary.ps1”
That’s all. The solution is simple and it took only a few minutes to get a working solution.
Another possibility would have been to develop a timer job in SharePoint with all following processes: Development, Testing, Install on Staging, Testing, Install on Production, Testing, Documentation, etc. which would take hours.
Great to have Powershell.