Move Users Favorites Folder and then Delete?
Posted on 2014-03-03
My current scenario is as follows for user accounts:
\\188.8.131.52\userprofile$\User-16 (this is their profile path)
\\184.108.40.206\userprofile$\User-16\Favorites (this is their favorites folder)
I need to take the above favorites folder and move it to their userhome$ folder found here:
\\220.127.116.11\userhome$\%username%\Favorites (these folders already exist)
Then delete their complete userprofile$ folder.
How can I achieve this using powershell? I think the tricky part for me is going through each folder in userprofile$ and looking for a \Favorites folder and then matching that userprofile$ foldername to %username% since they're the same.