I would like to know how to get all groups of a specific web site using powershell.
I do know that all groups are defined at the site collection level but when browsing in a specific web, it only displays groups that are associated with the current web.

So there must be a way to know what is the web associated for a specific group or what are all groups associated with a specific web.

Thanks a lot.