How can i use Powershell to setup shared folders for users and amend permissions?
Posted on 2015-01-15
I need to create quite a few shared folders for users on a perticualar server and need to set the permissions for each folder so that inheritance is disabled with only them (the user) with modify rights and full rights for admin,domain admin and system only. I was hoping to use powershell to import a csv/txt file containing all the usernames and create the folders and permissions. I would like the folders to be named as their usernames also. After frantic searching on google and various others I'm stuck on what i want to do and what script i could put together. As you can tell by my username, I am a n00b, so anyhelp would be very very much appreciated. It's just confused me. Also, i have a test environment so don't worry! :D
So, to sum up.. I would like to achive the below:
Powershell to import usernames and create folders in the below location..
..Folders Created in //Server1/Users/(username)
Folders have inhertiance disabled with permissions set for MOdify only for the user and full access for Admins,domain admins.