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 email@example.com")
This script runs a powershell script which creates a mailbox for RickRudolph, email address of firstname.lastname@example.org
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?