小编Chr*_*ris的帖子

如何授予PowerShell WorkFlow对以前导入的模块的访问权限

我试图将PowerShell工作流引入一些现有脚本中,以利用并行运行功能。

当前在工作流程中,我必须使用:

Inline
{
   Import-Module My.Modules
   Execute-MyModulesCustomFunctionFromImportedModules -SomeVariable $Using:SomeVariableValue
}
Run Code Online (Sandbox Code Playgroud)

否则,我会收到错误消息,指出找不到自定义函数。必须有更好的方法来做到这一点?

powershell workflow

4
推荐指数
1
解决办法
3266
查看次数

标签 统计

powershell ×1

workflow ×1