|
|
|
date: Wed, 2 Apr 2008 06:51:00 -0700,
group: microsoft.public.exchange.development
back
Re: Create an Exchange 2007 Mailbox (Programmatically)
Hello swwalsh,
> I have a script written which creates a user in the Active Directory,
> creates a folder on our file server, creates an exchange 2003 mailbox,
> and sets the appropriate permissions... This is all written in ASP
> (vbscript).
>
> We have recently upgraded to Exchange 2007. Is there a way using ASP
> (VBscript) to create a mailbox in exchange 2007?
>
> I have heard Microsoft has dropped this and PowerShell must be used.
> So I guess the second question is, can you access powershell commands
> with ASP (vbscript)? If not, can I run PowerShell from a ASP.NET
> application and make it run on a website?
>
> This entire script runs on the web, and it needs to be run on the
> web...
>
> Any help would be appreciated...
Yes, you can do this via PowerShell and ASPX
I am using c#, but could help you.
Are you using impersonation on your current web site?
Also, microsoft.public.windows.powershell would be a good place to ask these
questions
Karl
date: Wed, 2 Apr 2008 14:18:50 +0000 (UTC)
author: Karl Mitschke
Re: Create an Exchange 2007 Mailbox (Programmatically)
Hello,
you can do this from your web application. I don't know this for sure if it
applies to the Enable-MailUser cmdlet, but other Exchange cmdlets do not
work when called directly from a web application context. You'll have to
wrap the functionality in a COM+ application and call this COM+ application
from your webpage.
Kind regards,
Henning Krause
"swwalsh" wrote in message
news:57F252AA-FDA5-4D9D-9407-4B4293385AF1@microsoft.com...
>I have a script written which creates a user in the Active Directory,
>creates
> a folder on our file server, creates an exchange 2003 mailbox, and sets
> the
> appropriate permissions... This is all written in ASP (vbscript).
>
> We have recently upgraded to Exchange 2007. Is there a way using ASP
> (VBscript) to create a mailbox in exchange 2007?
>
> I have heard Microsoft has dropped this and PowerShell must be used. So I
> guess the second question is, can you access powershell commands with ASP
> (vbscript)? If not, can I run PowerShell from a ASP.NET application and
> make
> it run on a website?
>
> This entire script runs on the web, and it needs to be run on the web...
>
> Any help would be appreciated...
date: Wed, 2 Apr 2008 21:27:39 +0200
author: Henning Krause [MVP - Exchange]
Re: Create an Exchange 2007 Mailbox (Programmatically)
Thanks Karl. Appreciate the offer to help. Think you can fire me off an email
so we can get in contact. swwalsh[-at-]swgc.mun.ca ... remove the [-at-] and
replace with well ya know.
Thanks for the info Henning. I will keep this in mind when I am doing this.
I might need to do this in order to get this project complete.
Steve
"Karl Mitschke" wrote:
> Hello swwalsh,
>
> > I have a script written which creates a user in the Active Directory,
> > creates a folder on our file server, creates an exchange 2003 mailbox,
> > and sets the appropriate permissions... This is all written in ASP
> > (vbscript).
> >
> > We have recently upgraded to Exchange 2007. Is there a way using ASP
> > (VBscript) to create a mailbox in exchange 2007?
> >
> > I have heard Microsoft has dropped this and PowerShell must be used.
> > So I guess the second question is, can you access powershell commands
> > with ASP (vbscript)? If not, can I run PowerShell from a ASP.NET
> > application and make it run on a website?
> >
> > This entire script runs on the web, and it needs to be run on the
> > web...
> >
> > Any help would be appreciated...
>
> Yes, you can do this via PowerShell and ASPX
>
> I am using c#, but could help you.
>
> Are you using impersonation on your current web site?
>
> Also, microsoft.public.windows.powershell would be a good place to ask these
> questions
>
> Karl
>
>
>
date: Mon, 7 Apr 2008 10:21:03 -0700
author: swwalsh
|
|