Forum Discussion
santhosh_1983
Mar 23, 2026Copper Contributor
Need a PowerShell script for the query given below
Can anyone help me make a PowerShell script for cleaning the desktop policy and nothing to be saved in C: drive for multiple users in name.edu domain
Chirayu1988
Apr 01, 2026Copper Contributor
Cleaning the desktop” generally refers to enforcing a non‑persistent or centrally‑controlled desktop — for example clearing user desktop files at logoff or redirecting the desktop to a different location. Completely blocking users from saving anything on the entire C:\ drive is usually not practical because Windows and many apps rely on writing to local system paths.
If the goal is a clean environment on each login, profile management (roaming/mandatory profiles or deleting local profiles on logoff) is normally the correct solution. These configurations are best handled via GPO or Intune, not custom scripts.