Thanks a lot guys. I copied and paste the code to the top of my kix-script, and the function works for doing the check "ComputerInGroup" on a domain group for computer objects. Tomorrow I will try the Check if Laptop function.

Thanks a lot,
greetinx...

Sloop