25
Powershell如何在Start-Job的Scriptblock里传参?-SQL Server Deep Dive-51CTO博客
source link: http://blog.51cto.com/ultrasql/2068010
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
如何在Start-Job的Scriptblock里传参?方法1:利用本地变量,从一个可扩展的字符串,使用[scriptblock]::create方法创建脚本块:$v1 = "123"$v2 = "asdf"$sb = [scriptblock]::Create("Write-Host
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK