Get-SilVMHost

Get-SilVMHost

Gets host data objects.

構文

Parameter Set: Default
Get-SilVMHost [-EndTime <DateTime> ] [-StartTime <DateTime> ] [-VMHostName <String[]> ] [ <CommonParameters>]

詳細説明

The Get-SilVMHost cmdlet gets host data objects. If you specify no parameters, this cmdlet gets all host data from the most recent successful poll. If no poll of the Software Inventory Logging Aggregator previously succeeded, the cmdlet returns the host names and no other data.

パラメーター

-EndTime<DateTime>

Specifies the polling end date and time. This cmdlet gets host data based on the value that this parameter specifies.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-StartTime<DateTime>

Specifies the polling start date and time. This cmdlet gets host data based on the value that this parameter specifies.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-VMHostName<String[]>

Specifies an array of virtual machine host names for which to get data.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true (ByValue)

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

使用例

Example 1: Get hosts

This command gets data for Host01 and Host02 from the Software Inventory Logging Aggregator database.

PS C:\> Get-SilVMHost -VMHostName "Host01","Host02"

Example 2: Get hosts after a specified time

This command gets data for hosts from the database after the specified date and time.

PS C:\> Get-SilVMHost -StartTime "12/29/2014 11:00 AM"

Example 3: Get hosts before a specified time

This command gets data for hosts from the database before the specified date and time.

PS C:\> Get-SilVMHost -EndTime "12/29/2014 11:00 AM"

Example 4: Get hosts that match a wildcard

This command gets data for hosts that have names that match the wildcard string a*.

PS C:\> Get-SilVMHost -VMHostName "a*"

関連項目

Add-SilVMHost

Remove-SilVMHost

Software Inventory Logging Cmdlets in Windows PowerShell