24/7/365 Support

Move a File or Directory in PowerShell

Problem

You want to move a file or directory.

Solution

To move a file or directory, use the MoveItem cmdlet: PS >MoveItem example.txt c:\temp\example2.txt

Discussion

The MoveItem cmdlet moves an item from one location to another. Like the other *Item cmdlets, the MoveItem doesn’t work only against the filesystem. Any providers that support the concept of items automatically support this cmdlet as well.

The MoveItem cmdlet lets you specify multiple files through its Path, Include, Exclude, and Filter parameters.

Although the MoveItem cmdlet works in every provider, you cannot move items between providers. For more information about the MoveItem cmdlet, type GetHelp MoveItem.

Help Category:

Get Windows Dedicated Server

Only reading will not help you, you have to practice it! So get it now.

Processor RAM Storage Server Detail
Intel Atom C2350 1.7 GHz 2c/2t 4 GB DDR3 1× 1 TB (HDD SATA) Configure Server
Intel Atom C2350 1.7 GHz 2c/2t 4 GB DDR3 1× 128 GB (SSD SATA) Configure Server
Intel Atom C2750 2.4 GHz 8c/8t 8 GB DDR3 1× 1 TB (HDD SATA) Configure Server
Intel Xeon E3-1230 v2 3.3 GHz 4c/8t 16 GB DDR3 1× 256 GB (SSD SATA) Configure Server
Intel Atom C2350 1.7 GHz 2c/2t 4 GB DDR3 1× 250 GB (SSD SATA) Configure Server

What Our Clients Say