My file server has many scattered video files.

I am attempting to archive them to a separate server.
However I need to retain each individual file's file-path/folder structure in the new server.

Example:

`get-childitem "D:\*" -Filter *.mp4 -recurse`

This returns all the files with an .mp4 extension and their folder path.

But how can I copy exclusively said .mp4 files, ignore all other files, but copy their directory and parent directories?

If a file resides here for example:
Directory:

D:\Operating Systems & Software\Programs\Security+\AAA and Authentication - CompTIA Security+ SY0-501 - 4.1.mp4

I would like to recreate the folder structure in A: but only copy the .mp4 files. This means that the script recreates the folder structure, but ignores all files present inside said folders, except mp4 files, those files will be copied over to their respective sub-folder within the folder structure.