Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Access Denied when running PowerShell script in ASP.NET page

$
0
0

Hi,

I am writing a PowerShell / ASP.NET application to enumerate, disconnect, and log off a user's Terminal Server sessions. I can enumerate them just fine, but I am receiving an Access Denied message when I try to disconnect the user from an ASP.NET page (from a PowerShell window it works just fine).

I have set both the identity of the application pool in use, as well as the identity of the web site to a known domain administrator. I have also added the user to the local IIS_IUSRS group.

I am *not* using PoSh Remoting.

Does any one have an idea of what the problem might be?

Thanks!

Sam


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>