0 votes

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

by (6.2k points)

1 Answer

0 votes
by (180k 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 (5.1k points)
0 votes
1 answer

Hi, I followed this example: https://www.adaxes.com/sdk/IAdmTop6.html, but because the Custom Command is disabled, I get the following error message: System.Management.Automation ... if I enable the Custom Command. I am using Adaxes 2018.2 Best Regards Martin

asked Feb 19 by Martin (280 points)
0 votes
1 answer

Hello, I have a small question about executing custom commands remotely with powershell. We are now using Adaxes custom commands through orchestrator with remote ... /$UserAD_DN", $NULL, $NULL, 0) $UserAD.ExecuteCustomCommand($command_example) Kr, Serge

asked Oct 12, 2015 by kerremansserge (1.4k points)
0 votes
0 answers

When viewing the licensing area of Adaxes, it shows the number of licences being used, and also the limit - ... allowed by license $productInfo = $serviceSettingsContainer.ProductInfo $TotalnumberOfLicensedUsersAllowed = $productInfo.AllowedEnabledUserAccounts

asked Jun 21, 2016 by Martyn (480 points)
0 votes
1 answer

Hi I've added values to two attributes of an Oraganization Unit: adm-CustomAttributeText1 adm-CustomAttributeText2 I'm trying to extract these properties with a powershell ... But this does not provide the value set in adm-CustomAttributeText1. Any ideas?

asked Jan 28, 2013 by kjesoo (7k points)
2,221 questions
1,983 answers
5,448 comments
6,566 users