Pagine
Mobile #CamScanner
PowerShell #delete specific folders through script
In case you need to search recursively folders in a specific path and then delete them you can use below powershell script. (these example folders are related to teams cache cleaning topic)
Be aware that -whatif option permits to see output without really deleting folders.
Get-ChildItem "diskdrive:\path\*\AppData\Roaming\Microsoft\Teams\*" -directory | Where name -in ('application cache','blob storage','databases','GPUcache','IndexedDB','Local Storage','tmp', 'cache') | ForEach{Remove-Item $_.FullName -Recurse -Force -whatif}
SECURITY #FILE SERVER AUDITING PERMISSIONS CHANGES ON FOLDERS
If you have necessity to audit folder permissions change these articles would be helpful for you.
ID Event 4670.
https://www.rootusers.com/configure-file-access-auditing-in-windows-server-2016/
https://keys.direct/blogs/blog/how-to-enable-file-auditing-in-windows-server-2016