Remove-SilVMHost

Remove-SilVMHost

Removes hosts from the Software Inventory Logging Aggregator database.

構文

Parameter Set: Default
Remove-SilVMHost [-EndTime <DateTime> ] [-Force] [-StartTime <DateTime> ] [-VMHostName <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-SilVMHost cmdlet removes host names from the Software Inventory Logging Aggregator database and deletes host credentials from Credential Manager.

パラメーター

-EndTime<DateTime>

Specifies the polling end date and time. This cmdlet purges the active list of hosts based on the value that this parameter specifies.

Aliases

none

必須/オプション

false

位置

named

既定値

none

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

false

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

false

-Force

ユーザーの確認を求めることなく、コマンドを強制的に実行します。

Aliases

none

必須/オプション

false

位置

named

既定値

none

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

false

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

false

-StartTime<DateTime>

Specifies the polling start date and time. This cmdlet purges the active list of hosts 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 to remove.

Aliases

none

必須/オプション

false

位置

named

既定値

none

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

true(ByValue)

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

false

-Confirm

コマンドレットを実行する前に確認メッセージを表示します。

必須/オプション

false

位置

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットが実行された場合に何が起きるのかを示します。コマンドレットは実行されません。

必須/オプション

false

位置

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

使用例

Example 1: Remove hosts and delete credentials

This command removes the host names Host01 and Host02 from the Software Inventory Logging Aggregator database and deletes the host credentials from Credential Manager.

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

Example 2: Remove hosts and delete credentials without confirmation

This command removes the host names Host01 and Host02 from the Software Inventory Logging Aggregator database and deletes the host credentials from Credential Manager. This command specifies the Force parameter. The cmdlet does not prompt you for confirmation.

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

Example 3: Remove hosts after a specified time

This command removes the host names from the database after the specified date and time.

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

Example 4: Remove hosts before a specified time

This command removes the host names from the database before the specified date and time.

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

Example 5: Remove hosts that match a wildcard and delete credentials

This command removes host names that match the wildcard string a* from the database and deletes the host credentials from Credential Manager.

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

関連項目

Add-SilVMHost

Get-SilVMHost

Software Inventory Logging Cmdlets in Windows PowerShell