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

32 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

nikitha josh said...

Thank you so much for providing information on this. It was very useful.
Aviation Courses in Chennai
air hostess course in Chennai
airport courses in Chennai
Ground staff training in Chennai
Aviation Academy in Chennai
air hostess training in Chennai
airport management courses in Chennai
ground staff training in Chennai

Realtekh Consulting said...


Great Article. This Blog Contain Good information about ERP Software. Thanks For sharing this blog. Can you please do more articles like this blog.


machine maintenance software price in us
machine maintenance software development in us
crm software development cost in us
crm software development cost in chennai
cloud erp in chennai

sandeep saxena said...

I was so happy to read this article. Thankyou so much for good article.
Wordpress Training in Chennai
Wordpress course in Chennai
WordPress course
Wordpress Training in Adyar
Struts Training in Chennai
struts course
Spring Training in Chennai
Hibernate Training in Chennai

Anjali Siva said...

Excellent blog with unique content, thanks a lot for sharing this. I love to learn more about this topic.
Salesforce Training institute in Chennai
Salesforce Developer Training in Chennai
ccna Training in Chennai
gst Training in Chennai
Tally Training in Chennai
Web Designing course in Chennai
ui ux design course in Chennai
Salesforce Training in Anna Nagar
Salesforce Certification in Chennai

venkatesh@CS said...

Very useful tutorials and very easy to understand. Thank you so much for sharing.
hadoop interview questions
Hadoop interview questions for experienced
Hadoop interview questions for freshers
top 100 hadoop interview questions
frequently asked hadoop interview questions
hadoop interview questions and answers for freshers
hadoop interview questions and answers pdf
hadoop interview questions and answers
hadoop interview questions and answers for experienced
hadoop interview questions and answers for testers
hadoop interview questions and answers pdf download
hadoop interview questions pdf

Hari said...

Amazing article. Your blog helped me to improve my skills and thank you for giving this kind of pleasant informative blogs. Keep doing...!
JMeter Training in Chennai
Advanced Excel Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Pega Training in Chennai
Tableau Training in Chennai
Unix Training in Chennai
Spark Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
JMeter Training in Porur

Manisha Sudha said...

Awesome blog...thanks for sharing valuable articles.....
Struts Training in Chennai
Struts Training institutes in Chennai
Struts Training Chennai
struts Training in Anna Nagar
struts Training in T Nagar
Wordpress Training in Chennai
SAS Training in Chennai
Spring Training in Chennai
Photoshop Classes in Chennai
DOT NET Training in Chennai

Prakash said...

More impressive blog!!! Thanks for shared with us.... waiting for you upcoming data.
Software Testing Training in Chennai
software testing course in chennai
testing courses in chennai
best software testing training institute in chennai with placement
Software testing training in Tambaram
Software testing training in Guindy
Python Training in Chennai
Big data training in chennai
SEO training in chennai
JAVA Training in Chennai

for ict 99 said...

Great Article
Final Year Project Domains for CSE
Final Year Project Centers in Chennai





JavaScript Training in Chennai
JavaScript Training in Chennai

Venkatesh CS said...

Thanks for sharing valuable information.
Digital Marketing training Course in chennai
digital marketing training institute in chennai
digital marketing training in Chennai
digital marketing course in Chennai
digital marketing course training in omr
digital marketing certification in omr
digital marketing course training in velachery
digital marketing training center in chennai
digital marketing courses with placement in chennai
digital marketing certification in chennai
digital marketing institute in Chennai
digital marketing certification course in Chennai
digital marketing course training in Chennai
Digital Marketing course in Chennai with placement
digital marketing courses in chennai