Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OIM - Exchange Mailbox Creation - Powershell command print

vijay chinnasamyJun 23 2011 — edited Jun 29 2011
Quick Question:

I am troubleshooting some issues here when a mailbox creation fails for a particular type of OIM User.
I found that the user is provisioned to two places (as per our policy) - we have a forest tree in AD.
So we want a particular OIM user to provisioned to two places.

However Powershell throws an error (when I invoked the CreateMailboxExchange2007.vbs script manually) - the powershell is launching in a seperate window and goes away very fast - I am unable to see what is the error.

So, this is the command that CreateMailboxExchange2007.vbs invokes:


shell.run "PowerShell.exe -PSConsoleFile ""E:\Exchange\bin\exshell.psc1"" -noexit ""&{""Enable-Mailbox "&args.Item(0)&" -Database '"&args.Item(1)&"'"";""exit 0""} >> "&args.Item(2)&"",,20


However it does not append the error to the report.log file.

Is there a way to redirect the ERROR to the report file? Did anybody done that with Powershell.exe?

Regards
Vijay Chinnasamy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2011
Added on Jun 23 2011
2 comments
340 views