Script-based custom fields

Samuel MONIER
Samuel MONIER Member, Cerified Business Partner Posts: 13 ✭✭
edited July 31 in Scripts

Hi all !!

So, now on SuperPower (MSP) or Enterprise (ITD) we are able to use scripts to upload informations into custom fields on agents.

I offer you my powershell script (not perfect, but very usefull) to check every monitors on a computer. It will upload informations like "Ecran 2 Samsung C27F390 - S/N: XXXXXXX - HDMI - Annee 2021"

(yes in French, I let you change Ecran/Screen and Annee/Year)

Just create that script by copy it, create the custom field, and in a couple of minutes you've created an automatic monitoring inventory… Isn't cool ??

The script :
https://pastebin.com/rWE8ZGV5

Tagged:

Comments

  • Samuel MONIER
    Samuel MONIER Member, Cerified Business Partner Posts: 13 ✭✭

    Example of return with two screens :

  • mbudke
    mbudke Member Posts: 119 ✭✭✭
    edited August 1

    How did you manage that your custom field is shown as multiline?

  • Samuel MONIER
    Samuel MONIER Member, Cerified Business Partner Posts: 13 ✭✭
    edited August 1

    It didn't 🙂

    My return is on a single line.

    In yellow the first screen, and in green the second :

    As the content is longer than the space available, it take more than a line.

  • Samuel MONIER
    Samuel MONIER Member, Cerified Business Partner Posts: 13 ✭✭

    So this morning we now have all monitors used by our customers. And we know how many for each computer, the year, the model, and how they are connected.
    In few time, we have more informations to be proactive, thanks to that feature.

    I hope you'll be happy to do the same 😉

    And if you need to upgrade to use that feature, or have specific needs, you can contact me.

  • gilgi
    gilgi Administrator, Moderator, Internal Posts: 181 admin

    This is brilliant! Well done @Samuel MONIER :)
    Nice to see how this feature is getting used and even nicer that you're sharing it with everyone!