I am beginner in Powershell, and just wondering if you could help me to write a powershell script to do the following in AD
Every single user's profile in AD has a network drive map connection called X. This drive is used by each user to save their documents, folders/files, etc
When someone leaves our company, we would like to copy all content from this X drive[folder/subfolders/files] for each user in AD to be disabled to another secure shared location called LegacyRoot\Users\UserX..
Can anyone please help me with some ideas, best efforts to build an script to accomplish this goal?