如何在.net应用程序中获取Powershell脚本函数状态 [英] How to get the Powershell script function status in .net application

查看:87
本文介绍了如何在.net应用程序中获取Powershell脚本函数状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



Am 通过.net windows应用程序运行powershell脚本(.ps1)文件,使用Runspace命令和所有通过Windows应用程序成功运行脚本文件。但是我的问题是我在powershell 脚本文件中写了太多函数,我想在.net应用程序中成功完成每个函数的状态。我在进程结束时写入了这些状态详细信息的登录文件。但我希望,在运行powershell脚本时完成每个功能时的每个功能状态。如果你知道,请帮帮我







先谢谢。



谢谢&此致,

Vinod

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

推荐答案

这篇关于如何在.net应用程序中获取Powershell脚本函数状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆