Hello,
$Context.TargetObject.Put("employeeID", "A123456")
$Context.TargetObject.SetInfo()
works fine, thanks.
We have a multi-domain environment, and I get the error in all domans - even in the domain where the adaxes server resides.
With the code below in a normal Powershell-ISE, I get error message below.
$identity = "CN=Test User,OU=SMB,OU=Users,OU=AccAdm,OU=Admin,DC=acs,DC=local"
Get-AdmUser -Identity $identity -Server "acs.local" -AdaxesService localhost
Get-AdmUser : Unable to cast transparent proxy to type 'Softerra.Adaxes.Interop.Adsi.IADs'.
At C:\\Admin\\Adaxes\\Tets.ps1:12 char:1
+ Get-AdmUser -Identity $identity -Server "acs.local" -AdaxesService lo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) \[Get-AdmUser\], InvalidCastException
+ FullyQualifiedErrorId : Softerra:Adaxes:PowerShellModule:Commands:GetAdmUserCommand:ProcessRecord,Softerra.Adaxes.PowerShellModule.Commands.GetAdmUserCommand
regards Helmut