In SharePoint Online I have some subsites on site collection A and I need to move the contents (folders and files) on these subsites to site collection B.
I am trying to avoid using a 3rd party tool, is there a PowerShell script I can use to move the subsites or is there a script to move the contents (folders and files) from site collection A to site collection B?
Ideally I would also like to preserve the version history.