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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Force

사용자에게 확인 메시지를 표시하지 않고 명령을 강제 실행합니다.

별칭

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-VMHostName<String[]>

Specifies an array of virtual machine host names to remove.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

true(ByValue)

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지를 표시합니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행되는 경우 발생할 결과를 보여 줍니다. cmdlet은 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

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