Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » Adsi

Add a Disk Quota Entry on the Local Computer in Windows

You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.

Add a Disk Quota Entry on the Local Computer in Windows using VBScript, WMI and LDAP

Example(s)

Set colDiskQuotas = CreateObject("Microsoft.DiskQuota.1")

colDiskQuotas.Initialize "C:\", True
Set objUser = colDiskQuotas.AddUser("kenmyer")
Set objUser = colDiskQuotas.FindUser("kenmyer")
objUser.QuotaLimit = 50000000