File Ownership 
Author Message
 File Ownership

Hi

Does anyone know if U can write a script that will change
the file ownership of all the files in a folder?

Cheers
NAz



Sat, 12 Feb 2005 20:06:59 GMT  
 File Ownership

Quote:

> Does anyone know if U can write a script that will change
> the file ownership of all the files in a folder?

Hi

Do you want to set it to the user that is running the script (a.k.a. take
ownership), or do you want to set it to "whoever"?

--
torgeir



Sat, 12 Feb 2005 20:35:09 GMT  
 File Ownership

Quote:
>-----Original Message-----

>> Does anyone know if U can write a script that will
change
>> the file ownership of all the files in a folder?

>Hi

>Do you want to set it to the user that is running the
script (a.k.a. take
>ownership), or do you want to set it to "whoever"?

>--
>torgeir

>.
>I would like to be able to set the ownership to any

domain account.


Sun, 13 Feb 2005 00:39:13 GMT  
 File Ownership

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



Sun, 13 Feb 2005 01:06:48 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. ACC97 OS level File Ownership

2. Taking file ownership (NT4 + NTFS)

3. Determining file ownership

4. Visual basic and NT file ownership

5. How to Read File Ownership on NTFS

6. Taking file ownership (NT4 + NTFS)

7. file ownership from Novell volumes

8. disk quotas and files ownership

9. Changing File Ownership

10. Setting file ownership

11. Retrieving File Ownership on NTFS

12. File Ownership

 

 
Powered by phpBB® Forum Software