HI EVERYONE,


I'M IMPLEMENTING AN OFFICE 365 DRIVER AND ALMOST ALL WORKS FINE, I CAN
ADD, MODIFY AND BLOCK ACCOUNTS IN MSOL SCHEMA, BUT WHEN I WANT TO USE
ATTRIBUTES FROM EXCHENGE ONLINE I CAN'T DO IT.

WHEN A USER LEAVES THE COMPANY I NEED SET THE LITIGATIONHOLDENABLED IN
TRUE, BUT I TRIED ADDING TO THE SCHEMA MAPPING IN DIFFERET CLASSES, I
USED POWERSHELL CALLS FROM OUTPUT TRANSFORMATION POLICY..

<do-add-dest-attr-value name="PSExecute">
<arg-value type="string">
<token-text xml:space="preserve">Set-Mailbox </token-text>
<token-local-variable name="lv-upn"/>
<token-text xml:space="preserve"> -LitigationHoldEnabled
$True</token-text>
</arg-value>
</do-add-dest-attr-value>

Or I called a script to connect with Exchege Online, and If I use this
long command directly on powershell works fine


<do-add-dest-attr-value name="PSExecute">
<arg-value type="string">
<token-text xml:space="preserve">$username = "svciam@xxx.com" ;
</token-text>
<token-text xml:space="preserve">$file =
"C:\Novell\remoteloader.net\OF365.txt" ; </token-text>
<token-text xml:space="preserve">$MyCredentials = New-Object
-TypeName System.Management.Automation.PSCredential -ArgumentList
$username, (Get-Content $file | ConvertTo-SecureString) ; </token-text>
<token-text xml:space="preserve">$Session = New-PSSession
-ConfigurationName Microsoft.Exchange -ConnectionUri
https://ps.outlook.com/powershell/ -Credential $MyCredentials
-Authentication Basic -AllowRedirection ; </token-text>
<token-text xml:space="preserve">Import-PSSession $Session ;
Set-Mailbox </token-text>
<token-local-variable name="lv-upn"/>
<token-text xml:space="preserve">@xxx.onmicrosoft.com</token-text>
<token-text xml:space="preserve"> -LitigationHoldEnabled
$True</token-text>
</arg-value>
</do-add-dest-attr-value>
</actions>


I DIDN'T GOT AN ERROR FROM .NET REMOTE LOADER BUT IT DOESN'T WORKS....

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.5.2.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<modify cached-time="20151201221431.509Z" class-name="MSolUser"
event-id="vmdsaintclaire#20151201221431#1#1:e8e42db9-0925-405d-10b3-b92de4e82509"
qualified-src-dn="O=XXX\OU=usuarios\OU=externos\CN=508456"
src-dn="\XXX-DESA\XXX\usuarios\externos\508456" src-entry-id="37617"
timestamp="1449008071#2">
<association
state="associated">4a7cccbc-e9d9-4b88-924e-3a3e6bb89eaa</association>
<modify-attr attr-name="PSExecute">
<add-value>
<value type="string">$username = "svciam@XXX.co" ; $file =
"C:\Novell\remoteloader.net\OF365.txt" ; $MyCredentials = New-Object
-TypeName System.Management.Automation.PSCredential -ArgumentList
$username, (Get-Content $file | ConvertTo-SecureString) ; $Session =
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
https://ps.outlook.com/powershell/ -Credential $MyCredentials
-Authentication Basic -AllowRedirection ; Import-PSSession $Session ;
Set-Mailbox MMONROYP@XXXco.onmicrosoft.com -LitigationHoldEnabled
$True</value>
</add-value>
</modify-attr>
<modify-attr attr-name="PSExecute">
<remove-all-values />
<add-value>
<value type="string">$username = "svciam@XXX.co" ; $file =
"C:\Novell\remoteloader.net\OF365.txt" ; $MyCredentials = New-Object
-TypeName System.Management.Automation.PSCredential -ArgumentList
$username, (Get-Content $file | ConvertTo-SecureString) ; $Session =
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
https://ps.outlook.com/powershell/ -Credential $MyCredentials
-Authenticatio
DirXML: [12/01/15 17:14:40.403]: n Basic -AllowRedirection ;
Import-PSSession $Session ; Set-Mailbox MMONROYP@XXXco.onmicrosoft.com
-LitigationHoldEnabled $True</value>
</add-value>
</modify-attr>
<modify-attr attr-name="PSExecute">
<add-value>
<value type="string">Set-Mailbox MMONROYP
-LitigationHoldEnabled $True</value>
</add-value>
</modify-attr>
<modify-attr attr-name="PSExecute">
<add-value>
<value type="string">$username = "svciam@XXX.co" ; $file =
"C:\Novell\remoteloader.net\OF365.txt" ; $MyCredentials = New-Object
-TypeName System.Management.Automation.PSCredential -ArgumentList
$username, (Get-Content $file | ConvertTo-SecureString) ; $Session =
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
https://ps.outlook.com/powershell/ -Credential $MyCredentials
-Authentication Basic -AllowRedirection ; Import-PSSession $Session ;
Set-Mailbox MMONROYP@XXXco.onmicrosoft.com -LitigationHoldEnabled
$True</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
DirXML: [12/01/15 17:14:40.747]: TRACE: Remote Loader:
SubscriptionShim.execute() returned:
DirXML: [12/01/15 17:14:40.747]: TRACE:
<nds dtdversion="3.5">
<source>
<product instance="\XXX-DESA\system\DriverSet01\Office365-MID"
version="4.0.0.3" build="201410011950">Identity Manager Driver for
Microsoft Office365</product>
<contact>NetIQ, Corporation.</contact>
</source>
<output>
<status level="success"
event-id="vmdsaintclaire#20151201221431#1#1:e8e42db9-0925-405d-10b3-b92de4e82509"
/>
</output>
</nds>
DirXML: [12/01/15 17:14:40.747]: TRACE: Remote Loader: Sending...
DirXML: [12/01/15 17:14:40.747]: TRACE:
<nds dtdversion="3.5">
<source>
<product instance="\XXX-DESA\system\DriverSet01\Office365-MID"
version="4.0.0.3" build="201410011950">Identity Manager Driver for
Microsoft Office365</product>
<contact>NetIQ, Corporation.</contact>
</source>
<output>
<status level="success"
event-id="vmdsaintclaire#20151201221431#1#1:e8e42db9-0925-405d-10b3-b92de4e82509"
/>
</output>
</nds>
DirXML: [12/01/15 17:14:40.747]: TRACE: Remote Loader: Document sent.
DirXML: [12/01/15 17:14:40.747]:
DirXML Log Event -------------------
Driver = \XXX-DESA\system\DriverSet01\Office365-MID
Thread = Subscriber
Object = \XXX-DESA\XXX\usuarios\externos\508456
Level = success

IS POSSIBLE TO SET THAT ATTRIBUTE? WHAT AM I DOING WRONG?
*
Regards,

Vctor Nava*


--
vhnavag
------------------------------------------------------------------------
vhnavag's Profile: https://forums.netiq.com/member.php?userid=1236
View this thread: https://forums.netiq.com/showthread.php?t=54771