Disk Quotas

C

Chandra

I have disk quotas enable on my W2K server. I have a few
users with unlimited settings. They have huge amounts of
data but they are unsure what the data is. Is there a way
to run a script or query that shows me every file that
someone owns?
 
M

MS Newsgroups

Chandra,

I am not sure I understand your requirement, But if what you want is to
extract the owner information from a file you need to find a scripting
Interface against the NTFS file system since this information is actually
kept in the ACL for the file. There is a dll file called adssecur.dll that
needs to be registered to provide this, and you can find it in the ADSI 2.5
SDK wich is part of the Windows SDK . After you have registered this dll,
you could script something like this to extract the info

Dim sec, sd

Set sec = Wscript.CreateObject("ADsSecurity")
Set sd = sec.GetSecurityDescriptor("FILE://c:\myFile.txt") 'replace with
file you want info from

wScript.Echo "Control Flag: " & sd.Control & vbCrLf & "Group Owner: " & _
sd.Group & vbCrLf & "Owner: " & sd.Owner & vbCrLf & _
"SD Revision: " & sd.Revision

If this is what you are after, let me know and I can tune the script to
enumerate everything from a given searchpoint

Regards

Niclas Lindblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top