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 rjr@somedomain.com")
This script runs a powershell script which creates a mailbox for RickRudolph, email address of rjr@somedomain.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?
Thank you,
Rick
you can try connecting with WMI to the remote machine
Open in new window
Why the -noexit parameter?