Discussion Locked

Folder ownership

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How to Give users creator owner rights to home drives after the folder has been created. I would like to do this as bulk not one at a time. Any ideas. When we moved their home drives to another server the creator owner rights changed to administrator. Our folder redirect/offline files is giving us fits because of this.

2 replies

by james a bailey

Here's a couple of leads. I enjoy scripting, and learned a little from this. Check out this MS page on WMI SetSecurityDescriptor Method. I was able to change the folder permissions. In the sample script change the wmiAce.AccessMask = 131072 number to 2032127 for full control for the owner. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/setsecuritydescriptor_method_in_class_win32_logicalfilesecuritysetting.asp

Also check out this for setting the owner of the file.
http://www.jsiinc.com/SUBL/tip5600/rh5644.htm

by jamrock

When moving files use Robocopy this utility will also bring over the users perminision.
This utility is on the W2K Resource kit.
Assuming the directory structure is \\Server1\Users\Paul
Set Administrator (etc) permission on \\Server1\User

This discussion is closed to new replies.