Move-Item

Move or rename files, directories, registry keys, and other PowerShell data items. This command can only be run through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/move-item.

Move-Item {{path\to\source}} {{path\to\target}}

Move-Item {{path\to\source}} {{path\to\existing_directory}}

Move-Item -LiteralPath "{{path\to\source}}" {{path\to\file_or_directory}}

Move-Item {{path\to\source1 , path\to\source2 ...}} {{path\to\existing_directory}}

Move-Item {{path\to\source_key1 , path\to\source_key2 ...}} {{path\to\new_or_existing_key}}

mv -Force {{path\to\source}} {{path\to\target}}

mv -Confirm {{path\to\source}} {{path\to\target}}

mv -WhatIf {{path\to\source}} {{path\to\target}}