Should always add the DOMAIN or SERVER as part of the InGroup lookup to speed it up.

I see a failure here
use H: @HOMESHR + \ + @USERID ;

the + \ + needs quotes + '\' +