header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Enable-Mailbox from ASP.NET page
Last Post 23 Jun 2009 08:57 AM by Kirk. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
KirkUser is Offline
New Member
New Member
Posts:4
Avatar

--
22 Jun 2009 12: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 Shaw (MVP)User is Offline
    Veteran Member
    Veteran Member
    Posts:1641
    Avatar

    --
    22 Jun 2009 05:28 PM
    • Accepted Answer
    You may want to check this out:
    http://powershellcommunity.org/Foru...fault.aspx
    Marco

    *Microsoft MVP - Windows PowerShell
    https://mvp.support.microsoft.com/profile/Marco.Shaw
    *Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
    *Blog - http://marcoshaw.blogspot.com
    KirkUser is Offline
    New Member
    New Member
    Posts:4
    Avatar

    --
    23 Jun 2009 08:57 AM
    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.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer