0 votes

Hello,

I don't find an attribute for the netbios name of managed Domains like adm-DomainDN? How can I add the NetBios name to a report like "All users"?

regards Helmut

by (510 points)
0

Hello Helmut,

If you need to add the domain (e.g. company.com) to the report, you need to use the Domain column. The column should be added to the default columns list. image.png If this is not what you need, please, provide all the possible details regarding the desired report with live examples.

0

Hello,

this will give us the DNS name of the domain. What I asked was the NetBIOS name of a domain or object. In powershell, I can query it with following sample code (but only for the current Computer or User):

(Get-ADDomain).NetBIOSName
(Get-ADDomain -Current LocalComputer).NetBIOSName
(Get-ADDomain -Current LoggedOnUser).NetBIOSName

In some of our managed Domains, DNS and NetBIOS names are slightly different like:

DNS: company.com NetBIOS: COMP

regards Helmut

1 Answer

0 votes
by (226k points)

Hello Helmut,

Thank you for clarifying. You can add the value to the report using custom column and a PowerShell script. To do so:

  1. Launch Adaxes Administration console.
  2. In the Console Tree, expand your service node.
  3. Navigate to Reports\All Reports\Users and right-click the All users report.
  4. In the context menu, click Edit. image.png
  5. Activate the Columns tab.
  6. In the Report-specific columns section, click Add. image.png
  7. Specify a column name.
  8. Select the Text type and click Next. image.png
  9. Paste the below script into the Script field.
Import-Module ActiveDirectory

$domain = Get-ADDomain -Identity "%adm-DomainDN%"
$Context.Value = $domain.NetBIOSName
  1. Click Finish and then click OK.

For the script to work, you will need to install the ActiveDirectory PowerShell module on the computer where Adaxes service runs. If you have multiple instances of Adaxes service sharing common configuration, install the module on each of the computers.

Related questions

0 votes
1 answer

Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command? For example, HR submits a status change for an employee. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12, 2021 by davfount90 (20 points)
0 votes
1 answer

Hi, We are in process of implementing the User Creation/Deletion & Add/Remove Users to Group. We have been using the Canonical name ... /errorMessage> </addResponse> </ProcessRequestResult> </ProcessRequestResponse> Thanks, Aravindh

asked Nov 20, 2018 by Aravindh (100 points)
0 votes
1 answer

How do change the display name of a custom attribute in version 2017.2? All the information I am finding contains links that bring me to 2018 version

asked Nov 1, 2018 by hgletifer (1.3k points)
0 votes
1 answer

We have an AD Atturbute called HRManager which refferances AD accounts (like the manager attubute does) is there a way to get the email address of the referanced account in a script?

asked Jun 7 by hgletifer (1.3k points)
0 votes
1 answer

I have a Powershell script running as a schedule task that is exporting user records. I have a custom attribute, positionPrimarySupervisor, that contains the DN of the user's ... supervisor. Can you provide me a script to get the information. Thanks... Sandra

asked Oct 8, 2015 by sandramnc (820 points)
2,779 questions
2,512 answers
6,574 comments
26,286 users