OIM - Exchange Mailbox Creation - Powershell command print
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