[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Create user Mailbox Exchange 2010 using VBScript

Posted on 2010-08-26
6
Medium Priority
?
4,535 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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.

 

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 150 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

The environment that this is running in is SCCM 2007 R2 running on a Windows 2008 R2 server. The PXE Distribution point is running on its own Windows 2008 R2 box. This is what Event viewer showed after trying to start the WDS service:  An erro…
Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

650 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