You will need:
- the IP or FQDN of the remote PC
- Remote WMI Must be enabled
- Be a domain administrator
Get-WMIObject -class Win32_ComputerSystem –ComputerName [ip/fqdn] | select username
You will need:
Get-WMIObject -class Win32_ComputerSystem –ComputerName [ip/fqdn] | select username