There is a typo in the udf
Code:

dim $guota


should be
Code:

dim $quota


However, this shouldn't cause problems with the script unless you are using the variable $quota outside of the UDF.

I am also unable to get this to work for me. I am running it on a WinXP Pro computer and have tried it against a network drive and a local drive without success, but each type returns a different error. When checking against a network drive it fails on this line...
Code:

$quota.initialize($drive,$set)


with the following error: COM exception error "INITIALIZE" ((null) - (null)) [-2147352567/80020009]

When I check against "c:\" it fails here...
Code:

$quota=$quota.finduser($user)


with the following error: Incorrect function.

Any thoughts?

-Ben
http://www.rgcweb.org/kix