Since Powershell 5 it has been possible to use Get-LocalGroupMember to retrieve members of local groups (ie. Administrators and Remote Desktop Users). It works smooth when I am on the server, but I can't figure out how to use it agains a remote server.
The best thing would be if it was possible to do like this:
Get-LocalGroupMember Administrators -Server webserver001
Do I really have to use PSSession and would that work?