Solved

Powershell - How to give rights to an ASP application to run a Powershell Script.

Posted on 2010-09-06
5
1,616 Views
Last Modified: 2012-05-10
Hi..
I have a powershell script I need to run from an ASP.Net page. How can I give a user rights to execute the command in ASP.Net / IIS6.
thanks
0
Comment
Question by:JElster
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 33615124
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 33615130
0
 
LVL 1

Author Comment

by:JElster
ID: 33617073
Part of my script I trying to run has  a  -linkedCredential param.. when I include that I get the following error.  Any ideas ? thanks

Cannot process argument transformation on parameter 'Credential'. Cannot invoke this function because the current host does not implement it.
0
 
LVL 1

Author Comment

by:JElster
ID: 33620236
Any idea how I can get around this?  

Cannot bind parameter 'LinkedCredential'. Cannot convert the "System.Management.Automation.PSCredential" value of type "System.String" to type "System.Management.Automation.PSCredential".
0
 
LVL 1

Accepted Solution

by:
JElster earned 0 total points
ID: 33730646
Don't know how to give permission to run the the web page
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
This article will help you understand what HashTables are and how to use them in PowerShell.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now