ASP.NET PowerShell Impersonation

后端 未结 1 805
小蘑菇
小蘑菇 2021-02-10 00:47

I have developed an ASP.NET MVC Web Application to execute PowerShell scripts.

I am using the VS web server and can execute scripts fine.

However, a requirement

相关标签:
1条回答
  • 2021-02-10 01:07

    Does this blog post help? Comes straight from the PowerShell devs. Essentially, PowerShell starts a new thread to run the pipeline, and since .NET2.0 doesn't allow the thread to use the impersonation from the calling thread, it fails.

    http://blogs.msdn.com/powershell/archive/2007/09/10/impersonation-and-hosting-powershell.aspx

    0 讨论(0)
提交回复
热议问题