0 votes


I have a small question about executing custom commands remotely with powershell.
We are now using Adaxes custom commands through orchestrator with remote powershell, but when u execute a custom command like this u don't get any result/log. Is there any way to receive the logs for a command u have just executed in powershell?

Here is an example script we use...:

import-module ActiveDirectory
import-module Adaxes


$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("adaxes_server")

$command_example = "{e14bfad4-5234-4ec7-bcd3-ead9b8a9c7ee}"

$UserAD= Get-AdmUser User1   #### Reference user
$UserAD_DN = $UserAD.distinguishedName
$UserAD = $admService.OpenObject("Adaxes://$UserAD_DN", $NULL, $NULL, 0)


by (1.4k points)

1 Answer

0 votes
by (215k points)
selected by
Best answer

Hello Serge,

You won't be able to retrieve the results directly, however you can get the result of executing the Custom Command via Adaxes logs. For example, right after executing the Custom Command, you can pull the last operation executed on the user account via the Management History of the user. For information on how to access the Management History of an AD object via PowerShell, see section Getting Operations Performed on a Specific Object in the following SDK article: http://www.adaxes.com/sdk/?AccessingLog ... icationLog.

Related questions

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

I would like to add the following logic into a Powershell script that will be triggered on 'After Create User'. Read the value of the 'title' property of the user just created ... 'True' or 'False'. Could you assist with how to script this please? Many thanks.

asked May 1 by Bernie (1.8k points)
0 votes
1 answer

Is it possible to have custom command that doesn't execute on a specific (or any) AD object? I realize Adaxes is for AD management, but I was wondering if it would be ... to execute against and AD object, I just need it to talk to the SQL server. Thanks

asked Nov 9, 2012 by bemho (3.8k points)
0 votes
1 answer

Hi Support, I would like to run a program on a remote server. I'm trying the follow: Import-Module Adaxes Enter-PSSession-ComputerName S254-020ada1 'C: \ Program ... \ schemusc.exe-config Burkhalter' Unfortunately this does not work. Can you help me there?

asked May 14, 2014 by Napoleon (4.9k points)
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)
2,181 questions
1,946 answers
5,202 users