I have a program that I use to change user passwords for exchange 365. In order to do this I use the exchange online module for powershell. In order to call these modules from my application I have to set it to x64. I am trying to use the same idea to put a variation of this application on a website so that users can change their passwords from their website. However, I don’t have a way to specify which architecture I need it to be on with a .aspx page. I am using a web service to perform the operation locally on the server.
Is there anyway I can specify the architecture or any way of getting around this so that I can import the exchange module?
Thanks,
Anyways the script will always run on the server. So, you can always post the parameters from the UI to the server side code. Hence, you can just do an import-module from the server side C# code. Make sure that the Module is installed correctly on the target system (x86 or x64)