Saturday, June 18, 2011

Disk Quota and .net (WMI and Microsoft.DiskQuota.1)

Repost from old Blog

Today I had a con-call to talk about disk quota and how to automate the setting and reading of Quota. So i thought that I would post a little about Disk quota stuff.

There are 2 okay options.

#1 WMI (way to slow for a lot of things (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/disk_quota_provider.asp))

#2 Microsoft.DiskQuota.1

So my team needed a way to enumerate a users current quota limits and then + or - from them. WMI was very slow to do this. But DiskQuota.1 is quite fast. It is not well documented that it works on remote servers either. So I wrote a little something up.

So here is some cs (and vb.net) that has functions on how to get and set quota info with Microsoft.diskquota.1

CSharp: http://dl.dropbox.com/u/3275573/blog/QuotaFunctions.cs.txt
VB.NET: http://dl.dropbox.com/u/3275573/blog/QuotaFunctions.vb.txt

22 comments:

Amirtha rao said...

.Net is most preferred programming language among software developers all over the world. It is also considered as most trusted and effective platform to build high performing desktop or enterprise application. DOT NET Training Institutes in Chennai

mallika said...

Wonderful post. Thank you for sharing such a wonderful blog. keep updating... Web Designing Training Institute in Chennai | Web Designing Training Institute in Velachery.

kumari said...

Really I was so impressive after read your blog. your blog was very informative with "understandable manner"..
Software Testing Training in Chennai | Six Sigma Certification Training in Chennai

Rupi said...

Thanks for all your information from software languages.keep sharing
Android Training in Chennai | IOS Training Institute in Chennai | No.1 Android Training in Chennai

Anoushka Sakthi said...

Dot Net is the best programming language ever. your blog has explained the
an excellent concept which helps me to gain more info on C# programming language.

Dot Net Training in Chennai |
DOT NET Course in Chennai

Smith said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

ASO Services said...

Good post and I like it very much. By the way, anybody try this increase app downloads? I do not how to use.

Nisha Premrahul said...

Good Post. Thanks for sharing this pretty post. It was so good to read and useful to improve my knowledge. Keep blogging.
Final Year Project Center in Chennai | Final Year Project Center in Velachery

anudeep bichal said...

Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

java training in bangalore

jash vitha said...

Very Nice information, Really this is the correct time to post such a great blog... RPA Training Institute in Chennai | UI Path Training Institute in Chennai | Blue Prism Training Institute in Chennai

Vinoth Kumar said...

Thanks for sharing such a wonderful article...


PLC Training in Chennai | PLC Training Institute in Chennai | PLC Training Center in Chennai | PLC SCADA Training in Chennai | PLC SCADA DCS Training in Chennai | Best PLC Training in Chennai | Best PLC Training Institute in Chennai | PLC Training Centre in Chennai | Automation Training in Chennai | Automation Training Institute in Chennai

kri pav said...

I really love reading and following your post as I find them extremely informative and interesting. This post is equally informative as well as interesting No.1 Software Testing Training Institute in Chennai | Best Selenium Training Institute in Chennai | ISTQB Certification Center in Velachery

DAVIS MILLER said...

Those guidelines additionally worked to become a good way to
recognize that other people online have the identical fervor like mine
to grasp great deal more around this condition.


java training in chennai

kanaga seo said...

We are truly thankful for your blog entry. You will discover a great deal of methodologies in the wake of going to your post...

Embedded system training in chennai

castro nishanth said...

I like your blog format as you create user engagement in the complete article. It seems round up of all published posts. Thanks for sharing.. Excel Macro Training in Chennai | VMWare Training Institute in Chennai | Tally ERP9 Training Institute in Chennai

Jahan Murugassan said...

Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
white label website builder

mobile website builder

kevingeorge said...

Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.



rpa Training in Bangalore


Orange Techno Mind said...

Thanks for sharing
android training in chennai
aws training in chennai
dotnet training in chennai
informatica training in chennai
hadoop training in chennai
hadoop training in chennai
devops training in chennai
php training in chennai
salesforce developer training in chennai

Ganesh Kumar said...

Hi. Thank you for Your valuable information. Keep posting useful information.

Java Course in Chennai
Java Training Institute in Chennai

Sri Nithya said...

Great and useful blog. I learned a lot from your blog, Continue sharing more like this.
Blue Prism Training in Chennai | Blue Prism course in Velachery | Blue Prism course in Tambaram | Blue Prism course in Adyar | UiPath Course | UiPath Training Institutes in Chennai | UiPath Courses in Chennai

Anoushka Sakthi said...

Energetic blog with loads and loads of info. Keep doing more

Selenium Training in Chennai
selenium testing training in chennai
iOS Training in Chennai
Digital Marketing Training in Chennai
qtp training institute in chennai with placement
Automation testing training in chennai

Karthik said...

Nice to read your article in this blog and very informative to develop my future career
Best qtp training institute in Chennai
Qtp classes in chennai
qtp training institute in chennai with placement
Automation testing training in chennai
Best QTP Training Institutes in Chennai