Quote:
> I would like to be able to set the ownership to any
> domain account.
Hi
SUBINACL is in the Win2k Resource kit:
subinacl /noverbose /file \\server\share\dir /setowner=whoever
subinacl /noverbose /subdirectories \\server\share\dir\* /setowner=whoever
You can use ADSI as well, using the ADsSecurity.dll from the ADSI SDK if you are
running Windows2000 or if you are running on XP, use the
CreateObject("ADsSecurityUtility") interface.
Here is an example:
Subject: Re: Changing File Ownership
Newsgroups: microsoft.public.scripting.VBScript
Date: 2001-06-25 07:26:15 PST
http://groups.google.com/groups?selm=uKn6gJY%24AHA.1928%40tkmsftngp03
A GUI version:
SetOwner
http://www.wquinn.com/Download/Utilities/
The SetOwner freeware version changes ownership of files and directories. It is
integrated into your desktop using Explorer.
--
torgeir