By David Wiseman (Administrator)Created 20 Feb 2008
My Rating:
Vote
Rating:
Not Rated
Views:5701
Downloads:23

List Disk Quota Entries

Language:  KiXtart

Compatibility

Windows XP Yes Windows 2003 Yes
Windows 2000 No Windows NT No
Vista Unknown Windows 2008 Unknown
Description

Enumerates disk quota information (including user name, warning and quota limits, and disk space used) for each disk quota entry on a computer.

Code

Line Numbers: On  Off      Plain Text
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_DiskQuota")
For Each $objItem in $colItems
    ? "Disk Space Used:" + $objItem.DiskSpaceUsed
    ? "Limit:" + $objItem.Limit
    ? "Quota Volume:" + $objItem.QuotaVolume
    ? "Status:" + $objItem.Status
    ? "User:" + $objItem.User
    ? "Warning Limit:" + $objItem.WarningLimit
Next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
MichaelMCarver
Posted On: 8/23/2019 8:52:44 PM

Oh this is very keen topic.Last year I was going through same phase with my child and on other hand I was stuck in Edu Birdie urgent project but anyhow all went peacefully.This is very good post.


Posted On: 9/16/2019 7:32:56 AM

I tried to learn and still study it, and found it harder than I thought wuxiaworld

Jacob Wills
Posted On: 11/28/2019 3:29:16 PM

I have been facing problems to find some logical errors in the program but your article helped me to find them all. I am amazed to get assignment help service for my essays. I would share this article with my university's friends so that they complete their assignment.


Posted On: 12/19/2019 10:09:42 AM

Thank you for sharing the disk quota entry code. This code helps me a lot with my assignment. I am an academic writer for uk assignment writing service if you want any help I am here to assist you.

davidbrad
Posted On: 2/24/2020 7:46:03 AM

Some of our users can justify the large amount of data exceeding 30 GB, and we are willing to buy a 500GB or 1TB external drive for them to use best assignment help online and explain that we aren't responsible for data that they archive to the drive.


Posted On: 5/8/2020 6:32:39 AM

The material and aggregation is excellent and telltale as comfortably. One Funnel Away Challenge


Posted On: 5/8/2020 6:56:40 AM

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. ClickFunnels


Posted On: 5/8/2020 7:12:30 AM

There is definately a great deal to know about this subject. I like all of the points you've made. Resurge


Posted On: 5/8/2020 7:50:09 AM

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work Resurge


Posted On: 5/8/2020 8:20:32 AM

The material and aggregation is excellent and telltale as comfortably. Leptitox Review


Posted On: 5/8/2020 8:33:28 AM

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. Leptitox Review


Posted On: 5/8/2020 8:51:32 AM

The material and aggregation is excellent and telltale as comfortably. Resurge Reviews


Posted On: 5/8/2020 9:06:26 AM

It is extremely nice to see the greatest details presented in an easy and understanding manner. Leptitox


Posted On: 5/8/2020 10:25:13 AM

The material and aggregation is excellent and telltale as comfortably. Mind Body Matrix Pain Relief Cream


Posted On: 5/8/2020 10:58:48 AM

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. Conversation Starters

123456