Maintaining Modified Time When Moving Files in File Explorer for Windows 11

Abstract: Preserve original modified timestamps when copying files in Windows 11 using Robocopy or PowerShell.

Created: 2026-09-10 by

Windows File Explorer preserves the original modified timestamp when you move files within the same drive using drag-and-drop or cut-and-paste. However, copying files creates new timestamps based on the current time. To maintain the exact modified date and time attributes during a copy operation, you must use command-line tools like Robocopy or PowerShell, as the graphical interface does not offer a native setting to preserve these metadata fields.

Understanding Timestamp Behavior in Windows

When managing files in Windows 11, it is crucial to distinguish between moving and copying operations regarding file attributes. The operating system treats these actions differently at the file system level. When you move a file from one folder to another on the same physical volume, the file entry itself is simply relocated. Consequently, all associated metadata, including the Created, Modified, and Accessed times, remain unchanged. This behavior is consistent across Windows versions and is designed to maintain the integrity of file history within a single storage unit. However, the scenario changes significantly when you copy files. A copy operation creates a brand-new file entry on the destination drive or partition. By default, Windows assigns the current system time as the "Modified" timestamp for this new file. This can be problematic for workflows that rely on chronological sorting, version control, or audit trails where the original creation or modification date is legally or technically significant. For instance, if you are archiving documents or migrating data while preserving legal hold dates, the default copy behavior will corrupt your timeline. This distinction explains why many users encounter unexpected results when they expect their file explorer actions to behave like professional backup software. The visual interface prioritizes speed and simplicity over metadata preservation. Therefore, understanding this fundamental difference is the first step toward implementing a solution that meets your specific requirements for data integrity.

Why Drag and Drop Fails for Copies

Dragging a file from one drive to another, or even to a different folder on a network share, triggers a copy operation rather than a move. In these cases, File Explorer does not provide an option in its context menu or properties dialog to retain the source file's timestamps. Even if you hold down modifier keys like Shift or Ctrl, the underlying API call remains a standard file copy. The result is always a new file with a "Modified" date matching the moment the copy process completes. This limitation applies to all standard user interactions within the shell extension of Windows 11.

Solution 1: Using Robocopy for Batch Operations

The most robust method for copying files while preserving timestamps is using the built-in command-line utility known as Robocopy (Robust File Copy). This tool is included in all modern versions of Windows, including Windows 11, and offers extensive control over file attributes. It is particularly useful for large batches of files or entire directory structures where manual intervention is impractical. To use Robocopy, open the Command Prompt or PowerShell by searching for it in the Start menu. You will need to construct a command that specifies the source directory, the destination directory, and specific flags to preserve metadata. The key flag here is /COPY:DAT. This tells Robocopy to copy Data, Attributes, and Timestamps. While the default behavior often includes timestamps, explicitly defining this flag ensures that no other attributes are accidentally altered or omitted.
robocopy "C:\Source Folder" "D:\Destination Folder" /E /COPY:DAT
In this command, /E instructs the tool to copy all subdirectories, including empty ones. Without this flag, only files in the root of the source folder would be processed. After executing the command, verify the results by checking the properties of a copied file. The Modified date should now match the original source file exactly, regardless of how much time has passed since the operation began.

Solution 2: Using PowerShell for Precision

For users who prefer a scriptable approach or need more granular control, PowerShell provides a powerful alternative. The Copy-Item cmdlet in PowerShell can be configured to preserve timestamps using the -Preserve parameter. This parameter specifically targets the LastWriteTime, CreationTime, and LastAccessTime attributes of the file. Open PowerShell and navigate to your source directory or specify the full paths in your command. The syntax is straightforward but requires careful attention to path formatting to avoid errors with spaces in directory names.
Copy-Item -Path "C:\Source Folder\*.*" -Destination "D:\Destination Folder" -Recurse -Preserve
The -Recurse flag ensures that all nested folders and files are processed, mirroring the behavior of /E in Robocopy. The -Preserve flag is the critical component that overrides the default timestamp assignment. Once the command finishes, you can inspect the destination folder to confirm that the metadata has been retained accurately. This method is ideal for automation scripts where you might need to integrate timestamp preservation into larger data migration workflows.

Verifying Your Results

Regardless of the method you choose, verification is essential. Open File Explorer and ensure that the "Date modified" column is visible. You may need to right-click the column header and select "More..." to add it if it is hidden. Compare a few sample files against their originals. If the times differ by even a second, check your command syntax for typos in the flags. Properly executed commands will yield identical timestamps down to the millisecond.

Related Resources

If you are dealing with complex file structures after account changes, you might find our guide on Safe to Use File Explorer After Microsoft School Account Deletion in Windows 11? helpful for ensuring data safety. Additionally, for those migrating from older systems, How to Locate "Documents" and "Downloads" Folders from Your Old Computer's Boot Drive on a Windows 11 Machine provides insights into navigating legacy paths.

Frequently Asked Questions

Does moving files between different drives preserve timestamps?

No, moving files between different physical drives or partitions is technically a copy-and-delete operation in Windows. Because a new file entry is created on the destination drive, the modified timestamp will be set to the current time unless you use specialized tools like Robocopy. Standard drag-and-drop moves will reset the time attribute.

Can I change the default copy behavior in File Explorer settings?

No, Windows 11 does not provide a native checkbox or setting in File Explorer options to automatically preserve timestamps during copy operations. The graphical interface strictly follows the default API behavior, which assigns the current time to new files. You must rely on external commands or third-party utilities to alter this default.

What happens to the "Created" timestamp when I use Robocopy?

By default, Robocopy preserves the original "Created" timestamp along with the "Modified" and "Accessed" times when using the /COPY:DAT flag. This ensures that the complete history of the file is maintained in the destination location, making it indistinguishable from the original in terms of metadata.

Is there a risk of data loss when using PowerShell Copy-Item?

Using Copy-Item with the -Preserve flag is safe and does not delete source files. It simply creates a duplicate with preserved metadata. However, always ensure you have backups before running bulk copy operations, as accidental overwrites can occur if destination files already exist and you do not use appropriate exclusion flags.

Do network shares support timestamp preservation during copy?

Yes, both Robocopy and PowerShell can preserve timestamps when copying to network shares, provided the network protocol supports the necessary metadata attributes. SMB (Server Message Block) protocols used in Windows networks fully support these attributes. Ensure that the network connection is stable to prevent partial writes that could corrupt the file or its metadata.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More