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 (70 points)

1 Answer

0 votes
by (262k 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 by mightycabal (830 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

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

I'm in the process of creating a Web interface for requesting IT accounts. Upon submission, I want to run a Powershell script that will create an item in a Sharepoint task list.

asked May 14, 2021 by sandramnc (870 points)
0 votes
1 answer

I have an ADP Sync scheduled task that modifies and creates users from a csv file. I also have reports that show new users created and management history for user ... ADP Sync scheduled task so that they only run after the ADP Sync task is complete?

asked Jan 7, 2020 by barberk (60 points)
3,225 questions
2,925 answers
7,494 comments
534,171 users