Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add computer to collection powershell

Get-Content "E:SourcesImportList_computers.txt" | foreach { Add-CMDeviceCollectionDirectMembershipRule -CollectionName "Computer List" -ResourceID (Get-CMDevice -Name $_).ResourceID }
Source by www.prajwaldesai.com #
 
PREVIOUS NEXT
Tagged: #add #computer #collection #powershell
ADD COMMENT
Topic
Name
2+9 =