Need a way to populate a custom Item field for a static group of devices

Comments

6 comments

  • Bouma, Colby

    How about running a remote command against the collection to set an environment variable? PDQI already queries environment variables.

    0
    Comment actions Permalink
  • Duane Barron

    Thanks Colby but what would the command look like and how do I know to populate the environment variable called "CSI Schedule"?  Sorry not real good with command lines.

    0
    Comment actions Permalink
  • Bouma, Colby

    SETX CSI_Schedule 22 /m

    I attached a screenshot with an example of filters you can use in a report.

    0
    Comment actions Permalink
  • Duane Barron

    Thanks again Colby but that would be filtering,  what I was needing to accomplish is getting a group of devices together that have the same leasing schedule number in common (data not put in as of yet), then taking that group (may include 50-100 devices) and running a command to populate the custom item field called "CSI Leasing Schedule" with a value of 22.

    0
    Comment actions Permalink
  • Bouma, Colby
    1. Right-click on the collection, hover over Tools, select Remote Command
    2. Type this into the Command box: "SETX CSI_Schedule 22 /m"
    3. Hit Run

    This will not set the Custom Item, it will set an Environment Variable that the Standard scan will pick up. This is sort of a hack, but it does not appear to be possible to set a Custom Item on a group of computers without running a SQL query.

    0
    Comment actions Permalink
  • Duane Barron

    IT WORKED...well except on XP machines.  THANKS !!

    0
    Comment actions Permalink

Please sign in to leave a comment.