Add Active Directory Computer description to BigFix

Here’s an action script that adds the active directory computer description to the BigFix agent settings

// Set parameters
parameter “clipboardfile” = “{parent folder of (regapp “besclient.exe”)}\clipboard.txt”

// Get computer description
wait powershell.exe -ExecutionPolicy Bypass -command “(Get-ADComputer $env:computername -Properties description).description | Out-File ‘{parameter “clipboardfile”}’”

// Set computer description
parameter “Description” = “{line 1 of file (parameter “clipboardfile”)}“
setting “Description” = “{parameter “Description”}” on “{now}” for client
regset64 “[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]” “srvcomment”=”{parameter “Description”}”

1 Like