Freigeben über


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

Detaillierte Beschreibung

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

Parameter

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

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Force

Erzwingt die Ausführung des Befehls, ohne den Benutzer zur Bestätigung aufzufordern.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

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.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-VMHostName<String[]>

Specifies an array of virtual machine host names to remove.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue)

Platzhalterzeichen akzeptieren?

false

-Confirm

Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.

Erforderlich?

false

Position?

named

Standardwert

false

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

false

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

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

Verwandte Themen

Add-SilVMHost

Get-SilVMHost

Software Inventory Logging Cmdlets in Windows PowerShell