I'm looking for PowerShell Code that will export all local groups on a server and the users that belong to those groups. It would be helpful if this information can be exported to a .csv file or something readable. I did find some code but it displayed all the Domain Groups as well and that is not what I'm looking for. Only local groups and their members. This is for a Server migration project. Trying to avoid any manual work involving copying the user/Group information to the new server.