Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Enable Disk Quotas on the Local ComputerContent of Enable Disk Quotas on the Local Computer.vbsMD5 Hash: B705D3F26245B3CBD2E2FA35B18062C6 |
||
' Description: Enables disk quotas for drive C on the local computer. To enable disk quotas for a different drive, change C:\ in line two to the appropriate drive letter (for example, D:\). To disable disk quotas, set the value of the constant ENABLE_QUOTAS to 0. To enable, but not enforce, disk quotas, set this value to 1. This script must be run on the local computer.
Const ENABLE_QUOTAS = 2 Set colDiskQuotas = CreateObject("Microsoft.DiskQuota.1") colDiskQuotas.Initialize "C:\", True colDiskQuotas.QuotaState = ENABLE_QUOTAS | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |