-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke-Parallel and PowerCLI #22
Comments
Haven't tried this, but do have some internal use cases for it, will take a look tomorrow! |
Just checking to see if you ever got around to testing this out. I am having the same errors as awiddersheim mentions. |
Hi @jrob24! No luck so far. Tagged this 'help wanted' as it's a bit low priority on my side, but will keep poking around when the need comes up. Most of my operations with PowerCLI prioritize functionality over speed - partially due to the lumbering nature of PowerCLI : ) If you have any ideas or get anything working, definitely let us know! |
I finally found a workaround to this problem. runspaces are not thread-safe so you have to run them out of process. Here's my solution in C#, you should be able to reference this to make modifications to your powershell script to create a runspace out of processes. See line: RunspaceFactory.CreateOutOfProcessRunspace()
|
I'm also running into this problem. Any further development without using C#? |
Have you had any luck running this with PowerCLI? I'm hitting a brick wall doing so and was hoping for some suggestions on what to try. In my script block I am adding the PowerCLI snapin so that it's functions can be used but I keep getting the following:
If I try running with the
ImportModules
parameter I get this:It is all very confusing to me. This post seems to make it sound easy if I were to not use this module but I'd prefer to stick with this plumbing if at all possible:
http://velemental.com/2012/03/11/multithreading-powercli/
The text was updated successfully, but these errors were encountered: