0 votes

Is there anyone who has a solution for this task:
When creating a computer object through Adaxes I would like it to be get the next available name automatic from AD. For instance if I have a naming convention of PC-xxx where xxx is a incremental nr, so if the AD contains PC-001, PC-002 the next time a computer is created it should get PC-003 automatically.

by (260 points)
0

Noone that has some input on this? I'm thinking it should be some PS script that finds the next available name and populate custom attribute or similar?

1 Answer

0 votes
by (216k points)
edited by
Best answer

Hello Niclas,

Excuse us for a delay with your request.

To achieve the task, you need to create computer names with the help of a script. The script will be executed by a Business Rule triggered before creating a new computer.

During computer creation, for better performance, the last used sequence number will be stored by the rule in Adaxes configuration container. It will be stored in an Adaxes custom attribute of Adaxes configuration container, for example, CustomAttributeInt1.

Also, since computer creation is not possible without a name, you will need to create a pattern for creating initial computer names in the built-in Computer Pattern. That initial name will not be used anywhere, it will be necessary only to start creating the object. So, we suggest using a random sequence of characters here.

Thus, to achieve the task, you need to do the following:

  • Create a Business Rule that generates sequential computer names
  • Modify the Computer Pattern to generate an initial random name

i. Create a Business Rule that generates sequential computer names

To create such a rule:

  1. Create a new Business Rule.

  2. On the Step 2 of the Create Business Rule wizard, select Computer and Before Creating a Computer.

  3. On the Step 3, add the Run a program or PowerShell script action and paste the following script from our Script Repository: Create object names in sequential order.

  4. Modify the following parameters of the script:

    • $numberProperty - specifies the property of Adaxes configuration container that will store the last used number;
    • $objectNameFomrat - specifies how to format the object name;
    • $objectCategory - specify computer;
    • $initialNumber - specifies the starting number to use if there is no number saved in Adaxes configuration;
    • $maxNumber - specifies the maximum number that can be assigned.
  5. Enter a short description and click OK.

  6. Click Next and specify where in Active Directory the rule will generate computer names. When done, click Finish.

ii. Modify the Computer Pattern to generate an initial random name

To modify the built-in Computer Pattern so it generates a random computer name:

  1. In Adaxes Administration Console, navigate to <Your_Adaxes_Service>\Configuration\Property Patterns\Builtin.
  2. Select Computer Pattern.
  3. Double-click Computer Name.
  4. In the Generate default value field, specify %admRandomString, 4%. This will generate a random name consisting of 4 characters.
  5. Click OK, then click Save changes.

Now, that computer names are generated automatically, you can remove computer name from the form for creating computers. For details, see the following tutorial, starting from step 6: http://www.adaxes.com/tutorials_WebInte ... tomization.

Related questions

0 votes
1 answer

Hello, We are looking to get our standard users to have permissions to edit their out of office (automatic replies) in the self-service portal. We have setup the settings ... users only see the below How do we make the exchange properties visible to the user?

asked Feb 3, 2022 by JoeG (40 points)
0 votes
1 answer

Hi Team I need some assitance with creating a report to pull from exchange online all user mailboxes that have automatic replies enabled. I have been attempting to use ... Where-Object { $_.AutoReplyState -ne "Disabled" } | Select Identity, StartTime, EndTime

asked Aug 25, 2021 by Richard_NRL (90 points)
0 votes
1 answer

When configuring two servers, using the information sharing setting. How is this automatic redirection done if the primary server is unavailable? What configuration do I have to perform to have the automatic redirection? https://imgur.com/xJuPFSO

asked Feb 4, 2019 by user1928 (550 points)
0 votes
1 answer

Hi, We are getting intermittent problems with 2 exchange powershell commands. All the over commands work fine [08/07/2014 19:45:54] Get-CalendarProcessing -Identity "CN=46010248, ... this? I've tried running the command on the mdcexch5r and there is no error.

asked Aug 7, 2014 by darryl82 (40 points)
0 votes
1 answer

I've enabled SelfService to Automatic Logon with windows credentials, this works ok when the default browser is IE but not when it's Chrome or Firefox. How to enable it for Chrome/ ... .g. in a expired password e-mail) to open in IE? With regards, Remco Tiel

asked Dec 19, 2013 by RTiel (780 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users