Skip to content

Commit 702c401

Browse files
Update reference/7.6/Microsoft.PowerShell.Management/Move-Item.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 81730b8 commit 702c401

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/7.6/Microsoft.PowerShell.Management/Move-Item.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ For example, it can move a file or subdirectory from one directory to another or
4444
subkey from one key to another. When you move an item, it is added to the new location and deleted
4545
from its original location.
4646

47-
If the item destination already exists, this cmdlet raises an error. To replace the existing item
48-
in the destination with the item you're moving, specify the **Force** parameter.
47+
If the specified destination path resolves to an existing non-container item, or you're renaming
48+
and an item with the target name already exists, this cmdlet raises an error. To overwrite an
49+
existing item in these cases, specify the **Force** parameter. When the destination is an existing
50+
container (such as a directory), the item is moved into that container, if supported by the provider.
4951

5052
## EXAMPLES
5153

0 commit comments

Comments
 (0)