Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Exchange Server
Problem running cmdlet from Java code
Last Post 11 Nov 2009 07:02 AM by
lounge
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
lounge
New Member
Posts:11
11 Nov 2009 07:02 AM
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Exchange Server
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2