Remove-SilVMHost

Remove-SilVMHost

Removes hosts from the Software Inventory Logging Aggregator database.

Syntax

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

Detailed Description

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

Parameters

-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

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMHostName<String[]>

Specifies an array of virtual machine host names to remove.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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