Hello
I'm trying to run this PowerShell command on the Office 365 driver using
PSExecute:
If I use class-name="PowerShell" nothing happens, the driver doesn't run
the command, it just returns "success".

Code:
--------------------

<modify class-name="PowerShell" event-id="0">
<association>40478784-c487-4591-85b5-9a0738995200</association>
<modify-attr attr-name="PSExecute">
<add-value>
<value type="string">Remove-MsolUser -RemoveFromRecycleBin -ObjectId 40478784-c487-4591-85b5-9a0738995200 -Force</value>
</add-value>
</modify-attr>
</modify>

--------------------


If I use class-name="MSolUser" the driver tries to fetch the user, it
doesn't run my PowerShell command.


Code:
--------------------
<modify class-name="MSolUser" event-id="0">
<association>40478784-c487-4591-85b5-9a0738995200</association>
<modify-attr attr-name="PSExecute">
<add-value>
<value type="string">Remove-MsolUser -RemoveFromRecycleBin -ObjectId 40478784-c487-4591-85b5-9a0738995200 -Force</value>
</add-value>
</modify-attr>
</modify>
DirXML: [01-05-17 16:04:24.850]: TRACE: SUB: get-msoluser -ObjectID 40478784-c487-4591-85b5-9a0738995200
DirXML: [01-05-17 16:04:25.256]: TRACE: SUB: User Not Found. User: 40478784-c487-4591-85b5-9a0738995200.
DirXML: [01-05-17 16:04:25.303]: TRACE: : Set-MSolUser -ObjectID '40478784-c487-4591-85b5-9a0738995200'
DirXML: [01-05-17 16:04:25.522]: TRACE: : User Not Found. User: .
DirXML: [01-05-17 16:04:25.522]: TRACE: SUB: get-msoluser -returndeletedusers -ObjectId 40478784-c487-4591-85b5-9a0738995200

--------------------


How can I force the driver to run a PowerShell command?

Thanks!


--
alekz
------------------------------------------------------------------------
alekz's Profile: https://forums.netiq.com/member.php?userid=974
View this thread: https://forums.netiq.com/showthread.php?t=57154