Condividi tramite


Remove-SilVMHost

Remove-SilVMHost

Removes hosts from the Software Inventory Logging Aggregator database.

Sintassi

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

Descrizione dettagliata

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

Parametri

-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.

Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accettare l'input della pipeline?

false

Accetta caratteri jolly?

false

-Force

Forza l'esecuzione del comando senza chiedere conferma all'utente.

Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accettare l'input della pipeline?

false

Accetta caratteri jolly?

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.

Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accettare l'input della pipeline?

false

Accetta caratteri jolly?

false

-VMHostName<String[]>

Specifies an array of virtual machine host names to remove.

Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accettare l'input della pipeline?

true(ByValue)

Accetta caratteri jolly?

false

-Confirm

Richiede una conferma prima dell'esecuzione del cmdlet.

Obbligatorio?

false

Posizione?

named

Valore predefinito

false

Accettare l'input della pipeline?

false

Accetta caratteri jolly?

false

-WhatIf

Mostra che cosa succede se viene eseguito il cmdlet. Il cmdlet non viene eseguito.

Obbligatorio?

false

Posizione?

named

Valore predefinito

false

Accettare l'input della pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo di oggetti che è possibile inviare al cmdlet.

Output

Il tipo di output corrisponde al tipo di oggetti emesso dal cmdlet.

Esempi

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*"

Argomenti correlati

Add-SilVMHost

Get-SilVMHost

Software Inventory Logging Cmdlets in Windows PowerShell