📌  相关文章
📜  将计算机添加到集合 powershell - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:17.134000             🧑  作者: Mango

代码示例1
Get-Content "E:\Sources\Import\List_computers.txt" | foreach { Add-CMDeviceCollectionDirectMembershipRule -CollectionName "Computer List" -ResourceID (Get-CMDevice -Name $_).ResourceID }