Get AD Description and save it to BatchPatch Description

BatchPatch Forums Home Forums BatchPatch Support Forum Get AD Description and save it to BatchPatch Description

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14444
    ggcisssca
    Participant

    When we use “Add hosts from Directory…” feature we can also import AD description to BatchPatch description, where it’s very useful to identify assets.

    But most often we have to use manual list where we don’t use AD import to import hosts.

    In the other hand, we didn’t have a the useful description coming from AD. For the moment, I create my own “local command” who can retrieve these informations like that:

    Powershell.exe -ExecutionPolicy Bypass -Command “Get-ADComputer -Identity ‘$host’ -Properties Description | Select-Object -ExpandProperty Description”

    But the result is showned in the Local Command Output Log, where this information can be overwrite by another local command !

    Does it exist a method where I could save this output of a command to “BatchPatch Description” field ? (Otherwelse, adding a feature in Get Information -> Find Description from current AD could also help us)

    Regards

    #14445
    doug
    Moderator

    Hello – There is not currently a way to direct the output to the ‘Description’ column. We will consider your requests for a future version. The problem with us adding ‘Get info > Find description from AD’ is that it won’t work for most users since the Active Directory powershell module needs to be installed on the computer where the command is run, and we don’t like adding functionality to the software that will not work for most users in most situations, but this is why the local and remote commands can be customized for each user’s needs. We’ll consider making it possible to direct the output to a specific column.

    In the meantime one other thing to consider is that if you are adding computers manually to the grid, you can get the description from AD with your script before adding the computers to the grid. And then you can add the computers plus description to the grid using the following syntax. If you copy the below text and paste it into ‘Grid > Add hosts’, you’ll see that it populates the description value right into the description field for each computer:

    computer1|||description for computer1
    computer2|||description for computer2
    computer3|||description for computer3

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.