Delete a Disk Quota Entry on the Local Computer

Deletes the disk quota entry for a user named kenmyer. This script must be run on the local computer.

VBScript Code


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

colDiskQuotas.Initialize "C:\", True
set objUser = colDiskQuotas.FindUser("kenmyer")
colDiskQuotas.DeleteUser(objUser)