Solved

Create user Mailbox Exchange 2010 using VBScript

Posted on 2010-08-26
6
4,335 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
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

After having deployed hundreds of thousands of Terminal Services seats worldwide, I still see all the time people asking me that same old question: "If TS/RDS is that reliable why are you telling me I should reboot it that often? My DC/SQL/Exchange/…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now