I've been searching for quite a while for this, And couldn't find it anywhere.
Firstly, Is there equivalent command to:
wmic computersystem get domain
Which return the current user primary domain.
And I've been wondering whether there's an equivalent command of:
net group /domain
A command that returns all the global groups of user current domain.
So far I've been trying to search in different network files at /etc/, Currently the only relevant file I've found was reslov.conf which hold all the DNS, And it might contain more information than i actually need. [Which means that i'll have to query each domain there and 'ask' whether the user is associated with that domain] is there a way which is more efficient than that?
Thanks.