![](/img/trans.png)
[英]Running same powershell script multiple asynchronous times with separate runspace
[英]Powershell invoke script in new process and within the same runspace
我在应用程序(进程)中获得了一个已配置的c# Runspace v3。 我想在一个新进程中但在同一Runspace中执行PowerShell脚本。 我该怎么做? 我以为,当我在现有运行空间中启动PowerShell时,该运行空间将继承到新的PowerShell:不幸的是,事实并非如此……
我看到了以下有趣的方法,但没有解决方案对它们的帮助: RunspaceFactory.CreateOutOfProcessRunspace Invoke-Command
PS:我无法在我的应用程序中更改从运行空间到PowerShellProcessInstance的访问权限,也无法使用PSRemoting
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.