0 votes

Hello

how is it possible to get the IPv4 address in "All Computers" report?

regards Helmut

by (510 points)

1 Answer

+1 vote
by (270k points)

Hello Helmut,

There is no AD property storing IP addresses of computers. The addresses can be added to the report only using a custom column generated by a script. To add the column:

  1. Launch Adaxes Administration console.
  2. In the Console Tree, expand your service node.
  3. Navigate to Reports\All Reports\Computers.
  4. Right-click the All Computers report and then click Edit in the context menu. image.png
  5. Activate the Columns tab.
  6. In the Report-specific columns section, click Add. image.png
  7. Specify a column name and click Next.
  8. In the Script field, paste the below script. image.png
# Get computer IP address
try
{
    $dNSHostName = $Context.GetADObject().Get("dNSHostName")
    $iPAddressToString = [System.Net.Dns]::GetHostAddresses($dNSHostName).IPAddressToString -join ";"
}
catch
{
    $iPAddressToString = $NULL
}

# Assign column value
$Context.Value = $iPAddressToString
  1. Click Finish and then click OK.

Related questions

0 votes
1 answer

Hi, we currenlty have a business rule to send an email everytime the Title, Manager, Department, accountExpires, EmployeeType or FirstName attributes are ... Unit: %BusinessUnit% End Date: %accountExpires% Effective Date of Change: %adm-CustomAttributeDate2%

asked Feb 14 by KevC (60 points)
0 votes
1 answer

For security purposes, we need to audit the objects that are capable of replicating the directory. As we have a number of individuals that need this report, I would like to ... four domains and would like to see any objects with this permission in any of them

asked May 20, 2022 by jiambor (1.2k points)
0 votes
0 answers

It would be great if we could run a report on an OU and get the following information: Computer Name Local Accounts Whether or not the account is an administrator ... this is less important. Thanks in advance. Your support team is great and appreciated.

asked Sep 8, 2021 by mikek (80 points)
0 votes
1 answer

I have people stating they never received the approval notifications. I know how to add multiple approvers to a Send for Approval command, but that sends a email to a second " ... do I send a duplicate email or CC another user on ALL outbound emails? Thanks!

asked Oct 24, 2012 by mpaul (360 points)
0 votes
1 answer

Hi We've had a request to forward to a mailbox any user who has had their username and email address changed, the email is to show old user name, new user name, old ... and email address, would it need to be a Powershell script for this? Thanks in advance.

asked Jan 23, 2015 by CBurn (700 points)
3,326 questions
3,026 answers
7,727 comments
544,682 users