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.

Enable-Mailbox from ASP.NET page
Last Post 23 Jun 2009 04:57 PM by kirk1. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
kirk1User is Offline
New Member
New Member
Posts:4
Avatar

--
22 Jun 2009 08:58 PM  
I'm in the process of creating a page that will allow staff to enable mailboxes using Powershell and I am running in to an issue when running the script.

Enable-Mailbox -Identity user@domain.com -database 'server\sg\mb1' -whatif

The script works on the console on the webserver directly:

[PS] C:\>Enable-Mailbox -Identity user@domain.com -database 'server\sg\mb1' -whatif
What if: Enabling Mailbox "user@domain.com" on Database "server\sg\mb1".

It doesn't when running it on the server and it fails oddly:

Database "server\sg\mb1" was not found. Please make sure you have typed it correctly.

Does anyone have any ideas?

Thank you for your time.
marco.shawUser is Offline
Site Moderator
Basic Member
Basic Member
Posts:457
Avatar

--
23 Jun 2009 01:28 AM Accepted Answer  
You may want to check this out:
http://powershellcommunity.org/Forums/tabid/54/aff/3/aft/524/afv/topic/Default.aspx
Marco

*Microsoft MVP - Windows PowerShell: http://www.microsoft.com/mvp
*PowerGadgets MVP: http://www.powergadgets.com/mvp
*Blog: http://marcoshaw.blogspot.com
kirk1User is Offline
New Member
New Member
Posts:4
Avatar

--
23 Jun 2009 04:57 PM  
Thank you for your response. I ended up doing some App Pool tweaks and it worked.
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