Hi,
I have to limit the users in my NTFS disk. I do it at using user quotas. I
found that user qoutas are filesystem property and work only on NTFS
partitions even if the OS is Windows 2000. I wanted to write a program that
would at any pont of time give the user quotas. Till now I was scanning each
and every file ans using the SID information printing it. However, this
makes my system very slow. Is there a way to programmatically directly get
the user quotas?
Regards,
Arati
Hello -
Arati Kadav wrote:
Hi,
I have to limit the users in my NTFS disk. I do it at using user quotas. I
found that user qoutas are filesystem property and work only on NTFS
partitions even if the OS is Windows 2000. I wanted to write a program
that
would at any pont of time give the user quotas. Till now I was scanning
each
and every file ans using the SID information printing it. However, this
makes my system very slow. Is there a way to programmatically directly get
the user quotas?
Regards,
Arati
Hope this helps-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
disk_quota_provider.asp
You might need to write some WMI apps to query the classes, but I am quite
hopeful from this Class. In case you need code, do contact me.
- Pankaj
Just want to add a key thing-
All these classes have been included in Windows XP family.
Thanks,
Pankaj
“Pankaj K” wrote in message news:xxxxx@ntdev…
>
> Hello -
>
> Arati Kadav wrote:
> >
> > Hi,
> > I have to limit the users in my NTFS disk. I do it at using user quotas.
I
> > found that user qoutas are filesystem property and work only on NTFS
> > partitions even if the OS is Windows 2000. I wanted to write a program
> that
> > would at any pont of time give the user quotas. Till now I was scanning
> each
> > and every file ans using the SID information printing it. However, this
> > makes my system very slow. Is there a way to programmatically directly
get
> > the user quotas?
> > Regards,
> > Arati
>
> Hope this helps-
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
> disk_quota_provider.asp
>
> You might need to write some WMI apps to query the classes, but I am quite
> hopeful from this Class. In case you need code, do contact me.
>
> - Pankaj
>
>
>
>
Use following com interfaces for NT and windows 2000.
Refer MSDN for more info.
Disk Quota Interfaces
The following interfaces are used with disk quotas:
IDiskQuotaControl
IDiskQuotaEvents
IDiskQuotaUser
IDiskQuotaUserBatch
IEnumDiskQuotaUsers
Thanks,
Raveendra
-----Original Message-----
From: Pankaj K [mailto:xxxxx@yahoo.com]
Sent: Thursday, December 19, 2002 2:45 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding users of my disk
Just want to add a key thing-
All these classes have been included in Windows XP family.
Thanks,
Pankaj
“Pankaj K” wrote in message news:xxxxx@ntdev…
>
> Hello -
>
> Arati Kadav wrote:
> >
> > Hi,
> > I have to limit the users in my NTFS disk. I do it at using user quotas.
I
> > found that user qoutas are filesystem property and work only on NTFS
> > partitions even if the OS is Windows 2000. I wanted to write a program
> that
> > would at any pont of time give the user quotas. Till now I was scanning
> each
> > and every file ans using the SID information printing it. However, this
> > makes my system very slow. Is there a way to programmatically directly
get
> > the user quotas?
> > Regards,
> > Arati
>
> Hope this helps-
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
> disk_quota_provider.asp
>
> You might need to write some WMI apps to query the classes, but I am quite
> hopeful from this Class. In case you need code, do contact me.
>
> - Pankaj
>
>
>
>
—
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to %%email.unsub%%