Dynamic Custom Fields or Dynamic Custom Variables



  • Colby Bouma

    No, it's not possible to do that natively.

    However, if you're willing to try out a Beta, that's absolutely something you could gather with the PowerShell Scanner. It can't fill that into a Custom Variable though.

    $SerialNumber = ( Get-CimInstance Win32_BIOS ).SerialNumber
    $AssetTag = ( Get-CimInstance Win32_SystemEnclosure ).SMBIOSAssetTag
    $First3 = $SerialNumber.Substring(0, 3)
    $Last4 = $SerialNumber.Substring($SerialNumber.Length - 4, 4)

    $AssetTag + $Last4 + $First3
    Comment actions Permalink
  • Craig Lloyd

    Hi Colby,

    Thanks for the comments above, the PowerShell Scanner sounds interesting.

    I had a quick read of the beta documents you linked, one question if you could please?

    Where do the results of the PowerShell Scanner script get put? So I can reference them in the Inventory?

    Do I need to attach them to the Custom Field I created or do they make their own against the Computer Records?

    Currently I'm importing these from a script running from our Quest K1000 box



    Comment actions Permalink
  • Colby Bouma

    The results end up on the PowerShell page of the computer window: https://link.pdq.com/docs-inventory-beta?powershell_page.htm

    Comment actions Permalink

Please sign in to leave a comment.