Twhite0909
asked on
PowerShell Move Folders and Files
I use the Move-Item cmdlet currently to move files from my SFTP to other locations. I now wantr to move the FOLDERS and FILES from the server to other locations.
Move-Item D:\LocationA\* Grabs all files under the LocationA directory but does not move any subfolders residing here.
Move-Item D:\LocationA\* Grabs all files under the LocationA directory but does not move any subfolders residing here.
ASKER
OK TY for that now second part is I am moving it across volumes of different servers. I have a mapped network drive for the other servers location but this script gives an error " Move-Item : Source and destination path must have identical roots. Move will not work across volumes."
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window