Guys
I have been running a couple of powershell scripts via a C#.net aspx page largely succesfully - however most of these have been using credentials in the actual script.
I have one script that queries a list of terminal servers and outputs a couple of values. This worked fine in dev on my own local machine but when uploaded to the web server it returns a value of 0.
If I run the script on the web server (logged on as myself) it runs fine.
I presume this is because IIS runs the script under it's account.
Any ideas? What do I need to change?
Thanks
I have been running a couple of powershell scripts via a C#.net aspx page largely succesfully - however most of these have been using credentials in the actual script.
I have one script that queries a list of terminal servers and outputs a couple of values. This worked fine in dev on my own local machine but when uploaded to the web server it returns a value of 0.
If I run the script on the web server (logged on as myself) it runs fine.
I presume this is because IIS runs the script under it's account.
Any ideas? What do I need to change?
Thanks