[英]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.