Detecting if a local will work with the previous response.

However, if we look at - Best Practices and Methods, we see:
Code:

$admin = ingroup(@wksta+'\'+sidtoname('S-1-5-32-544'))-1+@INWIN



if we expand upon this, we get -
Code:

cls
break on

$admin = ingroup(@wksta+'\'+sidtoname('S-1-5-32-544'))-1+@INWIN
?$admin

If $admin
?'you are a local admin'
else
?'you are not a local admin'
endif
get $



HTH,

Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's