How to add computers from .csv file to DSM Groups.
CA Client Automation - All Versions
By Default, the option to populate computers from .csv file into DSM group is not available in the current release of CA Client Automation but as a workaround, we can use this script :
____________________________________________________
$computers = @()
$computers += gc "D:\CASource\Scripts\GroupAddition\list_of_computers.csv"
foreach ($computer in $computers) {
cadsmcmd compGroup action=add name=NewComputersGroup computer=$computer
}
____________________________________________________
* list_of_computers.csv (used as an example)
* Change 'NewComputersGroup' with the name of the group you would like to add (used as an example).