Quantcast
Viewing all articles
Browse latest Browse all 26364

Script to move Users HOME drive data to new location

Ok, I have a school district where the current mapping for HOME has the incorrect security permissions on it. As well, we are in the process of moving their home share to a new location. The way I was doing this was I selected all the users and updated their home mapping to \\storagesvr\home$\%username% which created all the directories with the correct permissions.

Now my next step will be to run a script or batch file to copy \\oldlocation\home$\user-a to \\newlocations\home$\user-a. However I do not want the existing permissions to copy, I want them to inherit the correct permissions from their new location.

I was thinking perhaps there was a way I could do a robocopy script with some sort of FOR EACH loop to accomplish this.

Can someone help me with the syntax or give me a better option?


Viewing all articles
Browse latest Browse all 26364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>