?
Solved

Create user Mailbox Exchange 2010 using VBScript

Posted on 2010-08-26
6
Medium Priority
?
4,564 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Case Summary: In this Article we introduce the new method to configure the default user profile using Automated profile copy with sysprep rather than the old ways such as the manual copy of a configured profile to default user profile Old meth…
This is my 3rd article on SCCM in recent weeks, the 1st (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html) dealing with installat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

807 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