homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Webserver - Quotas
ASP Script to change file ownership for the quotas

 7:52 am on Sep 9, 2005 (gmt 0)

Hi All,

I am running a Win2003 web server. I have enforced quotas for all my clients, however, not all clients ftp to our server under necessary username for the quota.

I am looking to create a script that goes through our users folders (daily) and makes sure all the files have the correct owner and, if not, changes the owner.

I can create the script but don't know how to get or change the file owner. Does anyone know a way of doing this?




 10:59 am on Sep 9, 2005 (gmt 0)

Maybe you can use the LDAP/ADSI Componet or IADSecurityUtility to get into Active Directory?

I'v not tried this but it might get you started dow the right track.

Set objFile = CreateObject("SecurityDescript­or")
objFile.Owner = "whatever"


 12:16 pm on Sep 9, 2005 (gmt 0)

thanks aspdaddy. looking into it now.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved