header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

Problem running cmdlet from Java code
Last Post 11 Nov 2009 03:03 PM by lounge. 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
loungeUser is Offline
New Member
New Member
Posts:11
Avatar

--
11 Nov 2009 03:03 PM  
Hello

This is the line I want to run:

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" Enable-Mailbox -Alias 'XXXXXXX' -identity 'XXX.XX\XXXXX' -Database 'XXXXXX\SG1\MDB1' -ManagedFolderMailboxPolicyAllowed -domainController XXXX.XXXXXXXX.XXX'

It works perfect when I run it in the console, and I get an output that the mailbox has been enabled. But when I try to run the same line from my Java application in a Process, nothing happens.

Any thoughts on this?


Thanks in advance.

Fred.


You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer