Share via

Powershell newbie - need help with structure

Jason 1 Reputation point
2021-05-23T06:38:26.233+00:00

I would like to use Powershell to copy some files from C:\Users to another location

I need the script to copy files for any number of users which may exist under C:\Users. It will be run on different machines which may have different users on each.

I need the complete folder structure kept intact & copy the files in C:\Users*\AppData\Roaming\"Specific application folder" to another location.

I've tried various combinations of Copy-Item but cannot figure out how to move just the folders I want while keeping the folder structure.

Windows for business | Windows Server | User experience | PowerShell

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.