I have a vbscript that runs correctly on an Exchange Server The goal is to create a mailbox from the command line.
This is the script:
Set objShell = CreateObject("Wscript.Shell")
objShell.Run("powershell.exe -noexit c:\temp\RJRcreatemailbox.ps1 RickRudolph firstname.lastname@example.org")
This script runs a powershell script which creates a mailbox for RickRudolph, email address of email@example.com
Now what I want to do is to be able to run this script remotely from MSAccess VBA and pass the 2 parameters to the Exchange Server
Any ideas on the best way to do this?