Need script to set ownership of folders & give admin full rights
Posted on 2009-05-12
I manage a Terminal server farm that utilizes group policies to redirect Desktop, Application Data, My Documents, and start menu. The group policy is failing to execute after working for 5 years. I found I had to make users owners of their home folders when I originally set up this policy. One caveat was the admin does not have permissions to access some folders because of it. I am not entirely sure why we are having the problem, but I need to start by setting users so they own their folder and all subfolders, and secondly, set permissions so the administrator has full control of the same folders. Years back I used xcacls , but I must have the syntax wrong, and cannot get it to work. It may be that the admin needs to first assume ownership of the user folder, then assign full control and ownership to the user.
I need help asap on this.