Solved

Create user Mailbox Exchange 2010 using VBScript

Posted on 2010-08-26
6
4,380 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Win 2008 :  Allow RDP connection to user 5 64
RDP up only between 8am-13.00 pm ? 11 80
Windows Update not working 12 135
Event ID: 1202 / Source: SceCli 6 107
1. Boot PC and press F10, select storage options and change the compatibility from “AHCI” to “IDE”, save and exit 2. Boot PC and press F12 3. Upon PXE display of searching for DHCP server, press Pause break to obtain MAC address 3. Open Configu…
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:…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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