BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
| |
 |
 |
 |
 |
 |
| Get the Disk Quota Settings on a Computer |
 |
|
|
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
|
 |
 |
 |
|
|