Previous Topic: Get-Group - List Groups that carry a Given NameNext Topic: Get-NetworkAdapters - Get Network Adapters of the Specified Host


Get-Hosts - List all Hosts of a Scenario

The Get-Hosts command enables you to list all hosts of a given scenario.

Syntax
Get-Hosts [-Name] <String> 
Parameters
Name

The scenario name.

Example: List the hosts of a given scenario in an auto-sized format table

Get-Hosts "File Server 1" |FT -auto
Outcome
Scenario      Name          Role    Parent         State   IP            Port
--------      ----          ----    ------         -----   --            ----
File Server 1 192.168.1.152 Master  --             Running 192.168.1.152 25000
File Server 1 192.168.1.153 Replica 1192.168.1.152 Running 192.168.1.153 25000