Posted on: 3/16/2015 8:52:08 PM | Views : 613

I'm currently working on a test asp.net page that will run a PowerShell script on a server.
The PowerShell script checks to see if a users input which I stored in variable $userinput, matches the variable $name.
I have managed to get variables over to the PowerShell script from the asp.net page. The Default.aspx.cs script does a find and replace on userinput and then saves the script as a modified version.
I would like to print out on the asp.net page the variable $result from the PowerShell script. I have defined an output label on the asp.net page called Output.
However when ran, the label does not display the information from the variable $result.
Thanks in advance

Test.ps1
$name = "test" $userinput = "*userinput*" if(($userinput) -eq $name) { $result = "Name $userinput already ...

Go to the complete details ...