Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

Am Running powershell script (.ps1) file through .net windows application, Am using Runspace command and all successfully run the script file through windows application. But my problem is I wrote too many functions in that powershell script file, I want status of each function is successfully completed in .net application. Am writing log in file these status details at the end of the process. But I want, each function status when completed each function while running powershell script. Please help me if you know.



Thanks in Advance.

Thanks & Regards,
Vinod
Posted
Updated 17-Mar-14 1:18am
v2
Comments
Vinod Bheemisetty 27-Mar-14 5:37am    
Somebody suggested with alternative solution for this issue, here write return for each function after successful completion. In c# code we get this value PSObject loop. This though was working fine now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900