Yes I think that the problem was in fact that I wrote "doamin" instead of "domain", so when I used :
IF ComputerInGroup("PC-CENT-SI") Kix didn't understand the domain stuff and gave me the error :
Script error: invalid method/function call: missing required parameter 2!
If ComputerInGroup ("PC-CENT-SI")=1
Is this possible ?
And the reason why I modified the UDF is that I thought that if I only have 1 domain, the script would be faster if it doesn't have to check about the domain, don't you think ?
Since I'm french (my english is not so good...) I don't really understand what you mean by recompiling the udf but I guess not, I just took the example and put away the domain stuff... Is this better answer ? But the first time I told you it doesn't work I didn't modify the UDF, I just wrote "doamin" instead of "domain"....