Hi BoxKite,

sorry maybe I wasn't clear in my first post.

The line --If UCASE("@Priv")="ADMIN"-- is the problem, because the user have to be admin on the DOMAIN, but I want to know a solution to test if the user has LOCAL admin rights.

So: How to test if a user have LOCAL admin rights.

Thanks and Cheers from Belgium

_________________________
Cheers, Porq.