the one liner is sufficient, witout it needing to be a function

$admin = ingroup('@wksta\'+sidtoname('S-1-5-32-544'))-1+@INWIN
_________________________
How to ask questions the smart way <-----------> Before you ask