I'm trying to retrieve the local group membership (groups in my local domain) from Foreign Security Principals accounts (created after granting access to a resource to an account from a trusted domain) via VBScript. I'm using the code below but no matter what I do I'm not seeing the group membership. The code works fine with a normal account.
Set objGroup = GetObject("LDAP://CN=S-1-5-21-466423297-1915321860-2068054413-25636,CN=ForeignSecurityPrincipals,DC=mydomain,DC=root")
arrGroups = objGroup.memberOf
I can see the membership when I look in the AD Users and Computers console.