| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Webserver - Quotas|
ASP Script to change file ownership for the quotas
| 7:52 am on Sep 9, 2005 (gmt 0)|
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("SecurityDescriptor")
objFile.Owner = "whatever"
| 12:16 pm on Sep 9, 2005 (gmt 0)|
thanks aspdaddy. looking into it now.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved