Quick Hint: Cleaning up File server Public folder using Powershell
How can I clean up my File Server Public folder directory on an interval basis using PowerShell? If your company uses a Public folder and your policy is to clean up every X days you can use PowerShell to do the work for you. Let’s create a folder on the C: root called Operations and save the command line below in a file called PF-clean.ps1. Make sure to change the path for your public folder. Remove-Item -Path F:\Public\* -Recurse Now it comes the easy part, just create new Windows Task and make sure to fill out these following fields when … Continue reading Quick Hint: Cleaning up File server Public folder using Powershell