Automatic Cleanup of Downloads and Desktop in Kiosk Mode
This PowerShell script is intended for kiosk environments deployed using Windows Autopilot and Microsoft Intune . 📌 What This Script Does The script automatically empties all standard user libraries for a specified kiosk user (default: kioskuser0 ): Downloads Desktop Documents Pictures Music Videos It is designed to work reliably even in offline , restricted , or library/public kiosk environments where cloud-based or user-scoped cleanup policies may fail. 🛡️ Key Capabilities (Summary) A dedicated cleanup script is stored in C:\ProgramData A scheduled task runs daily at 20:30 as SYSTEM All cleanup actions are logged for traceability Supports simulation mode (WhatIf), install-only, and manual execution ⚠️ Purpose The purpose of this script is to ensure that all common user libraries are cleared regularly on kiosk devices, preventing data accumulation, protecting user privacy, and maintaining a clean and predictable kiosk experienc...