Mar 28 2020 05:04 AM
Hi i am new to Microsoft Intune. I am looking for way to automatically empty the download folder when a user logs out. I previously had a powershell script that had to be configured on every workstation in order to empty this downloads folder when a user logs out. Is there a way to configure this in Microsoft Intune?
Mar 29 2020 06:38 PM - edited Mar 29 2020 06:41 PM
Mar 30 2020 05:55 AM
Hi
I wouldn't create a specific Powershell script, but utilize a built-in feature from Windows 10, called Storage Sense.
Storage Sense can automatically cleanup certain unused files and also files in the Downloads.
check out this blog for more information:
https://www.petervanderwoude.nl/post/configure-storage-sense-via-windows-10-mdm/
You are looking for the 'ConfigStorageSenseDownloadsCleanupThreshold' setting. If you put that at '1', all downloads are deleted after one day of not being opened.
Mar 11 2021 01:40 AM
Mar 11 2021 10:21 AM