Using IDM 4.0.0.2 and AD driver 4.0.0.2
Try to run a Powershell command within a IDM role.
The command looks like this *Remove-MailContact -Identity
tyreso.se/_tk/meta/mailcontact/AaLu0728 -Confirm:$y*
It works fine in 2013 Exchange Management Shell but through IDM I got
this from the IDM log below in bold.
It seem that it doesn't like -Confirm:$y. Have tried using
-Confirm:$true but that of course didn't worked. Then I get this error
instead.
Error completing powershell command. ERROR: A command that prompts the
user failed because the host program or the command type does not
support user interaction. The host was attempting to request
confirmation with the following message: Are you sure you want to
perform this action?

Anyone know how to include -Confirm variable without error?


*[04/13/16 09:14:28.843]:Tyreso-se :Remote Interface Driver: Received.
[04/13/16 09:14:28.843]:Tyreso-se :
<nds dtdversion="1.1" ndsversion="8.7">
<source>
<product asn1id="" build="20130813_120000"
instance="\TK-IDVAULT2\TK\System\DriverSet02\AD Tyreso Prod"
version="4.0.0.2">AD</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status
event-id="IDM01-NDS#20160413071426#3#1:b4838d63-e3c8-4ab5-9fbb-e2805ab43d86"
level="error" type="powershell">Error completing powershell command.
ERROR: At line:1 char:79
+ Remove-MailContact -Identity tyreso.se/_tk/meta/mailcontact/AaLu0728
-Confirm:$y
+
~~
A variable that cannot be referenced in restricted language mode or a
Data section is being referenced. Variables that can be referenced
include the following: $PSCulture, $PSUICulture, $true, $false, and
$null.

</status>
<status
event-id="IDM01-NDS#20160413071426#3#1:b4838d63-e3c8-4ab5-9fbb-e2805ab43d86"
level="success"/>
<status event-id="pwd-subscribe" level="success"/>
<status
event-id="IDM01-NDS#20160413071426#3#1:b4838d63-e3c8-4ab5-9fbb-e2805ab43d86"
level="success"/>
<status
event-id="IDM01-NDS#20160413071426#3#1:b4838d63-e3c8-4ab5-9fbb-e2805ab43d86"
level="success"/>
</output>
</nds>*


--
Mantrixlinux
------------------------------------------------------------------------
Mantrixlinux's Profile: https://forums.netiq.com/member.php?userid=1506
View this thread: https://forums.netiq.com/showthread.php?t=55706