I need to change the owner on a list of directories which are listed in a file. The file looks like:
\\server\user1\folder
\\server\user2\folder
\\server\user3\folder
And so on. For each of these directories, I need to recursively set the owner, then run a script against it which I have ready to add permissions for a user, then I need to set the owner back to what it was.
Any way of doing this? I'm not very experienced with powershell!
\\server\user1\folder
\\server\user2\folder
\\server\user3\folder
And so on. For each of these directories, I need to recursively set the owner, then run a script against it which I have ready to add permissions for a user, then I need to set the owner back to what it was.
Any way of doing this? I'm not very experienced with powershell!