Users Guide

<Device Name="M80504-W2K8"/>
</DeviceList>
将设备添加到自定义组
说明Add-DevicesToCustomGroup 命令可以将设备添加到现有组。要将设备添加到该组,请使用 xml
件或列出设备并使用逗号进行分隔。
命令
PS> Add-DevicesToCustomGroup GroupName <groupName> -DeviceList
<devicelist.xml>
PS> Add-DevicesToCustomGroup GroupName <groupName> -Devices <comma
separated list of devices>
示例
PS> Add-DevicesToCustomGroup GroupName MyServers DeviceList .\Samples
\DeviceList.xml
PS> Add-DevicesToCustomGroup GroupName MyServers Devices PE2900-WK28-ZMD,
PWR-CODE.US.DELL.COM, HYPERVISOR, M80504-W2K8
DeviceList.xml 文件的示例
<DeviceList> <Device Name="PE2900-WK28-ZMD"/> <Device Name="PWR-
CODE.US.DELL.COM"/> <Device Name="HYPERVISOR"/> <Device Name="M80504-W2K8"/> </
DeviceList>
删除组
说明Remove-CustomGroup 命令可以从根节点删除组。
命令
PS> Remove-CustomGroup GroupName <groupName>
示例
PS> Remove-CustomGroup GroupName MyServers
394