Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / How to Prevent Users from Saving Files to Desktop, Downloads and Other Profile Folders

May 15, 2026

How to Prevent Users from Saving Files to Desktop, Downloads and Other Profile Folders

Users often save files directly to their %userprofile%\Desktop folders, which not only clutters them but also makes it more difficult for administrators to maintain user profile directories across workstations and servers. Storing a large number of user files on the Desktop or in standard user profile library folders (such as Downloads, Documents, Pictures, Videos) can be especially problematic for terminal RDS servers, VDI user profiles, and other scenarios involving the centralized user profile storage and backup. In this article, we’ll explore methods to prevent Windows users from creating, copying, or saving new files on the Desktop or in other library folders.

First, let’s look at how to manually change the NTFS permissions on the Desktop folder within a user profile to prevent the owner from creating or saving new files.

Prevent saving files to Desktop in Windows

Open the Desktop folder properties in File Explorer, go to the Security tab, click the Advanced button, and click the Disable Inheritance option.

Select a username from the list of permissions entries and click Edit. Click on the Show advanced permissions link. Disable the following NTFS permissions for a user:

  • Create files / write data
  • Create folders / append data

Change Desktop folder NFS permissions - deny create files and write data

Save the changes.

Now, the user will only be able to list and read files, but not create or modify them. Explicit file system permissions restrict write access to the %userprofile%\Desktop path. If a user tries to save or copy a file to the Desktop, an Access denied error appears along with a User Account Control (UAC) prompt indicating that elevated administrator privileges are required.

Destination Folder Access Denied
You’ll need to provide administrator permissions to copy to this folder.

Destination Folder Access Denied - when coping file to desktop

To prevent admin users from saving files to the desktop, change the access permissions for the built-in local Administrators group in the same way.

Deny save files to Desktop or other library folders for admin users

The Access Denied error will now be displayed without the UAC button.
Destination folder access denied

can’t save file to desktop - access denied

You can use the icacls command-line tool to explicitly set write-denial permissions to block users from saving files to their Desktop directory.

icacls "%USERPROFILE%\Desktop" /reset /T /C /Q
icacls "%USERPROFILE%\Desktop" /inheritance:d /T /C /Q
icacls "%USERPROFILE%\Desktop" /deny %USERNAME%:(OI)(CI)(WD,WA) /T /C /Q

icacls command: change Desktop folder NTFS permissions - deny write and create files

However, an advanced user can override this restriction while remaining the owner of the Desktop folder.

Let’s look at how to use Group Policies in an Active Directory domain to prevent users from saving files to the desktop or other locations. The idea is to run a logon script via GPO at user logon that prevents writing to the specified folders.

  1. Open the Domain Group Policy Management Console – gpmc.msc
  2. . Create a new GPO and then edit it.
  3. Go to User Configuration -> Policies -> Windows Settings -> Script (logon/Logoff) -> Logon
  4. Create a batch file named denydesktopwrite.bat and paste the code above into it. GPO logon script - deny desktop write for users
  5. Save the GPO settings and link them to the user’s OU.
  6. Restart the user’s computer to apply the new Group Policy settings.
  7. Check the restriction by confirming that write access to the Desktop directory is now explicitly denied for the user.
You can also create exceptions for certain users/groups in GPO and modify the logon script so that it only runs once for each user.

In the same way, you can also deny users from copying or saving files to other library folders in the user profile. For example, you can stop users from saving data to Downloads, Music, Documents, and folders.

0 comment
0
Facebook Twitter Google + Pinterest
Group PoliciesQuestions and AnswersWindows 11Windows Server 2025
previous post
Protect Windows Server from DDoS and Brute-Force Attacks with IPBan
next post
Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

Related Reading

How to Move (Migrate) Windows Shares to a...

February 26, 2026

Security Warnings When Opening RDP Files in Windows...

April 20, 2026

Find a Process Causing High Disk Usage on...

July 16, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Monitor Windows Log Files in Real Time with...

March 26, 2026

SMB over QUIC: Mount File Share over Internet...

December 24, 2025

Windows Stucks at ‘Getting Windows Ready, Don’t Turn...

September 24, 2025

How to Monitor Windows Machines with Zabbix

May 29, 2026

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • How to Monitor Windows Machines with Zabbix

    May 26, 2026
  • Fixing Duplicate Security Identifier (SID) Issues in Windows

    May 25, 2026
  • Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

    May 15, 2026
  • Protect Windows Server from DDoS and Brute-Force Attacks with IPBan

    May 12, 2026
  • How to Force Uninstall ANY Stubborn Program in Windows

    May 7, 2026
  • How to Safely Disable IPv6 on Windows

    April 30, 2026
  • Updating UEFI Secure Boot Certificates on Windows Devices Explained

    April 20, 2026
  • Security Warnings When Opening RDP Files in Windows 11

    April 17, 2026
  • Find Computers with Pending Reboot Status Using PowerShell

    April 15, 2026
  • Mounting NFS Shares in Windows Using the Built-in Client

    March 26, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • How to Enable or Disable Windows Defender Firewall
  • Configure NTP Time Source for Active Directory Domain
  • Exclude a Specific User or Computer from Group Policy
  • Configure Windows to Auto Restart/Shutdown with Task Scheduler
  • AppLocker: Configure Application Restriction Policies in Windows
  • How to Set a Custom Drive Icon in Windows
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top