Okay, I'm trying to get a list of all the groups that a user belongs to and that info to a text file. Here is what I tried:

shell '%comspec% /c echo groups @ingroup >group.txt

This works great for getting userid, fullname, and primary group (using the appropriate macros of course) but @ingroup returns errors. I know this macro allows you to look for a specific group but I need to pull all global groups for the users. Has anyone done this?