If the computer is joined into the domain and the user logs on with cached creds, then InGroup will work regardless of when the user RAS's in.
If that is not the case, the user needs to connect to IPC$ first.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.