You cannot create multiple System.Management.Automation runspaces in a web application for two or more different users if you use implicit credentials

Update: This information has been published as a KB article: https://support.microsoft.com/en-gb/kb/3115600. When you try and allow multiple users to create System.Management.Automation runspaces in a web application, if you are using implicit credentials (i.e., credentials from impersonation), you will notice that only the first user that accesses the web application is able to call CreateRunspace.  All…


PowerShell Automation from .Net

Even though this blog has numerous PowerShell scripts showing mainly how to use EWS from PowerShell, scripting isn’t actually something my team supports (Exchange scripting support is provided by the Exchange team).  What we do support, though, is automation of PowerShell from .Net. We’ve had a couple of cases on this recently, and it seems that it…

2