RamblingCookieMonster / Invoke-Parallel

Speed up PowerShell with simplified multithreading
MIT License
384 stars 88 forks source link

Invoke-Parallel Scriptblock [Enviornment]::GetEnvironmentVariable #57

Open LordBoBCUP opened 6 years ago

LordBoBCUP commented 6 years ago

It seems when using environment variables [Enviornment]::GetEnvironmentVariable("ComputerName") inside a scriptblock returns the local PC computername not the remote environment variable.

I would have expected the local environment variable not the local variable.