0 votes

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

by (1.3k points)

1 Answer

0 votes
by (289k 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

We've the following script we want to use in Adaxes to create as part of user creation, to ask if the user will need a AWS workspace, then asks employeetype for different ... "Error") exit(-1) } else { $Context.LogMessage("Created workspace", "Information") }

asked May 3 by Plusa (20 points)
3,547 questions
3,238 answers
8,232 comments
547,809 users