Powershell to get list of hosts

You can check this link, you will find your solution:

1 Like