Author Posts

August 12, 2016 at 9:13 am


I'm trying to write a script that copies the contents of a users Redirected Folder to a freshly created folder with a new name (automated when a user changes their name). We use the strictest permissions due to the nature of the business and therefore admins don't have access to the original folder.

I'm going to use takeown on the original folder so that the script has the right permissions. My question, as some folders are in the 40gb (I know!!) region, is: Will PowerShell wait until the takeown has finished before moving onto the next command, or will I have to include a Wait command?


August 15, 2016 at 11:03 am

PS will wait takeown....
but you ruine ALL of your security with takeown

I believe you should use robocopy for this task