Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Wed, 2 Apr 2008 06:51:00 -0700,    group: microsoft.public.exchange.development        back       


Create an Exchange 2007 Mailbox (Programmatically)   
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 06:51:00 -0700   author:   swwalsh

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us