Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Windows PowerShell print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
Get the Disk Quota Settings on a Computer


Bookmark and Share

By: Rod Trent
Posted On: 5/10/2007

Use this Windows PowerShell script to retrieve and review the Disk Quota settings on a given computer.

Copy and paste the following script (between the lines) into Notepad, making sure to have Word Wrap disabled, then save it with a .ps1 extension.





$strComputer = "."

$colItems = get-wmiobject -class "Win32_QuotaSetting" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
write-host "Caption: " $objItem.Caption
write-host "Default Limit: " $objItem.DefaultLimit
write-host "Default Warning Limit: " $objItem.DefaultWarningLimit
write-host "Description: " $objItem.Description
write-host "Exceeded Notification: " $objItem.ExceededNotification
write-host "Setting ID: " $objItem.SettingID
write-host "State: " $objItem.State
write-host "Volume Path: " $objItem.VolumePath
write-host "Warning Exceeded Notification: " $objItem.WarningExceededNotification
write-host
}





NOTE: Make sure you have the latest version of Windows PowerShell

  myITforum.com ©2010 | Legal | Privacy