IIS 7 and Above
Import-csv cmdlet not working when called from managed code
Last post Oct 07, 2011 12:19 PM by HCamper
Oct 07, 2011 12:05 PM|geninfman|LINK
I am trying to call a ps1 script through an ASP .net webpage. The first line on the script is an import-csv cmdlet. It fails saying the cmdlet is not recognized. I can run the same script from the powershell commandline and it works fine. Also if I remove
the import-csv line in the scipt, the script executes but I need to pass the input to the script from a csv file. Is there something special with import-csv command?
Oct 07, 2011 12:19 PM|HCamper|LINK
Can you post the code ?
Have you tried the IIS library sample