Invoke-Parallel:通过简化的多线程加速PowerShell

时间:2021-02-21 09:02:50
【文件属性】:
文件名称:Invoke-Parallel:通过简化的多线程加速PowerShell
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-21 09:02:50
powershell parallel PowerShell 并行调用 该函数将接受一个脚本或脚本块,并针对指定的对象并行运行它。 它使用运行空间,因为在许多情况下不适合使用作业或PSRemoting。 指示 # Download and unblock the file(s). # Dot source the file. . " \\Path\To\Invoke-Parallel.ps1 " # Get help for the function Get-Help Invoke-Parallel - Full # Use Invoke-Parallel with variables in your session $Number = 2 1 .. 10 | Invoke-Parallel - ImportVariables - ScriptBlock { $Number * $_ } # Use the $Usin
【文件预览】:
Invoke-Parallel-master
----README.md(3KB)
----.github()
--------FUNDING.yml(32B)
----appveyor.yml(700B)
----build.ps1(168B)
----Invoke-Parallel()
--------Invoke-Parallel.ps1(26KB)
----requirements.depend.psd1(328B)
----LICENSE.md(1KB)
----Tests()
--------Invoke-Parallel.Tests.ps1(3KB)
--------appveyor.pester.ps1(3KB)

网友评论