Specifications

Appendix B: Using PowerCLI
When the installation is complete, select the SolarWinds Virtualization Manager
PowerCLI in the start menu (or on your desktop, or QuickLaunch bar if you
selected either of those options during installation), and double-click it.
The following sections detail some of the tasks you can accomplish by using
Microsoft PowerShell and SolarWinds Virtualization Manager.
Connecting to Virtualization Manager
To connect to your SolarWinds Virtualization Manager server, use the Connect-
H9Server cmdlet. For example:
Connect-H9Server akutz-hyper9 admin admin
The preceding example creates a connection to the SolarWinds Virtualization
Manager server akutz-hyper9 using the credentials admin/admin.
Searching in Virtualization Manager
While you are connected to a SolarWinds Virtualization Manager instance, you
always have an active query. At first, the query is empty, and returns no results.
Run Set-H9Query to set your active query and return a set of results. For
example:
Set-H9Query * VirtualMachine
The preceding example sets your active query to all known virtual machines, and
returns the number of results found. The first parameter is a query, just like the
query you type into the search bar. The optional second parameter is the object
type. In addition to virtual machines, you can search for any managed object that
SolarWinds Virtualization Manager knows about. After defining the query, you
can view the results with the following command:
Show-H9Results 1 20
The preceding example prints a list of items 1 through 20 in the current search
result set.
All Virtualization Manager cmdlets are pipeline-aware. The following command
achieves the same result as the previous example:
Show-H9Results | Select-Object -first 20
288