Quote:


if ingroup("laptop") = @wksta then





This will never work because if ingroup("laptop") will never be the same as @wksta. And InGroup() only works on users not on computers.
Like said there are udf's to check on OU membership, I think this is the way to go.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.