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