Move files in PowerShell with Move-Item (and -Force)
PowerShell's mv equivalent — moves or renames files and folders, with -Force to overwrite existing destinations.
01Command
$ Move-Item -Path 'C:\Temp\report.csv' -Destination 'D:\Reports\report.csv' -Force02What it does
Move-Item handles both moving and renaming — renaming is just a move within the same directory. By default it refuses to overwrite an existing destination file, which is why scripts fail with 'Cannot create a file when that file already exists'; -Force removes that check. On the same volume a move is an instant metadata rename; across volumes it becomes a copy-then-delete.
03Risk
04Undo
$ Move-Item -Path 'D:\Reports\report.csv' -Destination 'C:\Temp\report.csv' -Force05Sources
- Move-Item - PowerShellEvidence: SS64 describes -Force as forcing the command to run without asking for user confirmation, overwriting existing destination files.
- Move-Item | Microsoft LearnEvidence: Microsoft documents Move-Item with -Force to overwrite an existing destination item and -WhatIf to preview the move.
Last verified: 2026-09-17 · Category: Files & Folders
06Related solutions
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.
Robocopy is Windows' built-in robust file copier: use /MIR to keep a destination folder as an exact one-way mirror of a source, resumable and restartable.
Search inside text files and logs with regex, returning file, line number and match.