Group:  English: Windows Server ยป microsoft.public.windows.server.scripting
Thread: Take ownership of files

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Take ownership of files
"Jim" <jj[ at ]nospam.com> 12.07.2007 18:52:58
Hello, I have a drive that all users used to have read/write rights to.
They had this permission via membership in a group. Now I want them to only
be able to read from the drive so I've moved all users into a read_only
rights group. The problem is that users can still write to the disk via the
default CREATOR/OWNER permission that was originally given when they created
the files.

I'm looking for a script that will traverse the whole drive, subdirectories
and all, and change the ownership to "administrator" so they can no longer
write to files they once created.

Can anyone provide any insight on how this may be accomplished?

Thanks!

Jim

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net