

Examples Example 1: Move a file to another directory and rename it When you move an item, it is added to the new location and deleted from its original location.

The locations must be supported by the same provider.įor example, it can move a file or subdirectory from one directory to another or move a registry The Move-Item cmdlet moves an item, including its properties, contents, and child items, from one Moves an item from one location to another.
