Create DSM group via csv import

Document ID : KB000116935
Last Modified Date : 04/10/2018
Show Technical Document Details
Introduction:
How can we add computers from .csv file to DSM Groups.
Question:
How can we add computers from .csv file to DSM Groups?
Environment:
Environment:  
CA Client Automation - All Versions
 

 
Answer:
Resolution:

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\uninstall.csv" 

foreach ($computer in $computers) { 
cadsmcmd compGroup action=add name=SEGreenScreenRemoval computer=$computer

____________________________________________________

* uninstall.csv (used as an example)
* Change 'SEGreenScreenRemoval computer' with the name of the group you would like to add (used as an example).