0 votes

Occationally Service Desk staff need to clear a DNS record when a desktop has been reimaged but is keeping the same name as loses the ability to manage its original DNS record. I'd like to use the paowershell command RemoveDnsResourceRecord and have the staff manually enter the machine name to remove. I setup the parameter "DNSRecord2Remove" but the custom command builder appears to force me to select an "Object Type" Is there a way to get around this? Also, the Powershell applet RemoveDnsResourceRecord is not recognized when running in ADAXES. Can I just install the applet on the ADAXES server using powershell?

by (110 points)

1 Answer

0 votes
by (294k points)

Hello Steve,

I setup the parameter "DNSRecord2Remove" but the custom command builder appears to force me to select an "Object Type" Is there a way to get around this?

If you want users to manually enter the required data, use a parameter of the Edit box type. For details about using parameters, have a look at step 5 of the following tutorial: https://www.adaxes.com/help/CreateCustomCommand. As for the type of object for the custom command itself, there is no way not to specify it as commands are executed against specific objects only. As a solution, you can create a custom command for the User object type and then create a Web interface action for it. The action should be always executed for the currently logged on user.

Also, the Powershell applet RemoveDnsResourceRecord is not recognized when running in ADAXES. Can I just install the applet on the ADAXES server using powershell?

Yes, you just need to install the corresponding PowerShell module on the computer where Adaxes service runs. If you have multiple instances of Adaxes service sharing common configuration, the module should be installed on all the corresponding computers.

Related questions

0 votes
1 answer

Here is my issue, When I use this code: $DNs = %param-GroupsInRole% $Groups = $DNs -split "|" %Param-GroupsInRole% can have multiple groups. When setting up the parameter I am ... I just need to be able to do a foreach with the groups picked by the initiator.

asked Mar 23, 2023 by mightycabal (1.0k points)
0 votes
1 answer

I would like to add a parameter for country to a custom command. Since the country has to be entered correctly in order for Active Directory to accept it, I would like to ... ? I didn't find it in the documentation and the sample scripts didn't use parameters.

asked Jun 4, 2020 by mark.it.admin (2.3k points)
0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16 by dominik.stawny (280 points)
0 votes
1 answer

As part of our (legacy) deprovisioning script (run by hand / not part of Adaxes), the user's home folder is moved to a folder tree of the format: !disabled\< ... have to resort to a PS script for that rather than allowing Adaxes to handle it internally.

asked Oct 6, 2014 by bradenmcg (260 points)
0 votes
1 answer

The use case we are looking for is providing a list of titles for users to choose from when initiating a re-hire. We already have a title property pattern established and would ... that we can manage the list in one place. Let me know and as always, thanks.

asked Nov 22 by msheppard (610 points)
3,588 questions
3,277 answers
8,303 comments
548,079 users