0 votes

Can you run a powershell to get a Custom Command's ID?

by (1.3k points)

1 Answer

0 votes
by (294k points)

Hello,

Yes, it is possible. You just need to bind to the Custom Command and then use the IAdmCustomCommand::CommandID property. For details about binding to Adaxes configuration objects, have a look at the following SDK article: https://adaxes.com/sdk/WritingAdsiScripts/#bind-to-adaxes-objects.

Should you have issues writing the script, please, provide all the possible details regarding the desired workflow where the script will be used and we will help you.

Related questions

0 votes
1 answer

I had a business rules that had a PowerShell script to update User properties in a SQL table. It was working fine. I moved the PowerShell to a custom command so I could ... in the custom command does get the values for the User object. Am I missing something?

asked Jun 2, 2014 by sdavidson (730 points)
0 votes
1 answer

Hi, When we add custom command action in UI, when a user selects 1 or more users for that custom commands, is there a way to integrate those selected users as input value into that custom command script and take action on those users.

asked Feb 5 by Renugopal (120 points)
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

I am wanting to export a list of users including the properties of a specific custom attribute. Ideally, I would be able to run a get-admuser and filter on a custom attribute, but even an excel report with the custom attributes would work. Is this possible?

asked Sep 9, 2021 by ggallaway (300 points)
0 votes
1 answer

I have a number of custom Powershell scripts that add users to Teams, groups, etc. I re-use these scripts dozens of times for different conditions and only change one ... possible to convert this script to a custom command and pass parameters to it instead?

asked 6 days ago by cwyant-hfg (40 points)
3,588 questions
3,277 answers
8,303 comments
548,090 users