Posted on: 8/26/2014 2:18:31 PM | Views : 463

Hello,
I have recently written a web application that connects to Office365 and changes a users password, and changes the password in Active Directory using powershell. The web application of course works well on my client machine, but on my web server it's having issues.
My Web Server:
Windows Server 2008 R2
IIS 7

I have my application pool setup and it is running under the ApplicationPoolIdentity. I have tried different Identities, but too no luck its not working.

Here is what I'm using to execute my powershell commands. I have my commands placed in strings and executed.

//The function to process the powershell script private string RunScript(string scriptText) { // create Powershell runspace Runspace runspace = RunspaceFactory.CreateRunspace(); // open it runspace.Open(); ...

Go to the complete details ...