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 (288k 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

Hi All, I am currently using the 30 day free trial of Adaxes and seeing if we can use it to achieve our method of user provisioning. I am looking into server-side ... variable value within an SQL query Can this be achieved? Any help is much appreciated, Thanks

asked Feb 1 by Lewis (40 points)
3,541 questions
3,232 answers
8,225 comments
547,800 users