|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SetOwner The security identifier is not allowed to be the owner of this object"The security identifier is not allowed to be the owner of this object" I can set this group to the owner via the gui fine. path = "c:\test\" Dim dinfo As New DirectoryInfo("c:\test\") 'Dim dir As New DirectorySecurity("c:\test\", AccessControlSections.Owner) Dim dir As DirectorySecurity = dinfo.GetAccessControl() dir.SetOwner(new NTAccount("DOMAIN\SecGroup")) dinfo.SetAccessControl(dir) Please Help Thanks Matt |
|||||||||||||||||||||||