Give yourself unrestricted script access:
Make a list of IPs to query and put it in a text file (1 IP per line).
Modify script below and put it in a text file with extension .ps1 (like script.ps1)
Put the .txt and the.ps1 in the same folder.
Browse to the folder in Powershell.
Wait for the query to find all the logged in users on your IP range...
Power ping and get computer, username