/build/static/layout/Breadcrumb_cap_w.png

How do I populate the device list in a script by importing contents of a csv file?

I have a list of devices in a csv file that I want to import into the device list of a script that I want to deploy.  Is this possible?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: JasonEgg 6 years ago
Red Belt
3
A workaround I've used before:
  1. Use a text editor to get all computer names separated by pipes ( | character). E.G. MyComputer|MyLaptop|John-Desktop
  2. Go to device inventory and open Advanced Search
  3. Set the search to "System Name" "matches REGEX" and paste the list of computers separated by pipes. Click Search.
  4. Check the select all checkbox, apply a manual label to the devices
  5. Use the manual label as the target label in your script
Keep in mind that computers will keep the manual label applied to them until it is manually removed. This means that the script will keep running on the computers. A workaround for this would be to have the script create a file or reg entry on success, then make the first step of the script a check for that file.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ