I’m attempting to run Powershell scripts through a web interface coded in C#/ASP.Net. I’m leaving my .ps1 scripts intact and calling them through Process.Start(Powershell);.
The error I receive every time is “The ‘=’ operator failed: Access is denied.” The powershell script portion that fails is on “$LC = Get-Credential” – assignment works everywhere else. Note: This only fails when running through published .aspx on IIS7 webserver. It works correctly when debugging through Visual Studio 2010.
Thanks!
Get-Credential produces a pop up – that will not work from an app pool.