Solved

Create user Mailbox Exchange 2010 using VBScript

Posted on 2010-08-26
6
4,406 Views
Last Modified: 2013-11-21
dear all,

how to create user mailbox exchange 2010 using vbscript?
and also VB script/command to managing exchange?

I want using GUI hta (html application) using vbscript to create mailbox user in exchange 2010.

Thanks
0
Comment
Question by:davidsat
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:Gary Dewrell
ID: 33533556
Why would you not just call the proper powershell scripts instead of calling vb sctips?

0
 

Author Comment

by:davidsat
ID: 33533941
how to parsing powershell script in hta?
0
 
LVL 12

Expert Comment

by:Gary Dewrell
ID: 33534023
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:davidsat
ID: 33534162
Thank for the link, the FIM Hello ScriptBox using "WScript.Shell" to open Hello.ps1 in current directory.

To manage(create,find,delete mailbox, etc) Exchange 2010, I need exchange management shell and interactive GUI contains input text, check box, and button on it.

Any other sample?

Thanks
0
 
LVL 12

Accepted Solution

by:
Gary Dewrell earned 50 total points
ID: 33534393
Not and HTA expert, we used VB6 to create our GUI but I would think the process would be the same.

You can pass the powershell script arguments on the command line. For example:

ShellCmd = "powershell -noexit CreateMailAccount.ps1 " & txtLoginName.Text

The script wold look simular to this:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI http://servername/PowerShell -Authentication Kerberos
Import-PSSession $session
$Username = $args[0]
enable-mailbox -identity $username -alias $username
exit
0
 

Author Closing Comment

by:davidsat
ID: 33715899
thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question