Answer the question
In order to leave comments, you need to log in
Fast network traversal of machines to execute PS code?
now I go around the network by looping machines one by one to execute ps code on them, with 1000+ machines it doesn’t go very fast. I think that this is a template task, there must be already written wrappers to bypass machine packs, can someone tell me something?
executing ps to launch a PC through gpo does not suit.
Answer the question
In order to leave comments, you need to log in
Use threads, the link is below, in addition, there is also a ThreadPool to control the number.
Duplicate from comments
https://docs.microsoft.com/en-us/powershell/module...
Can be run via Ansible. The default will try to execute on all hosts at the same time. It is worth limiting the number of hosts processed in parallel with the serial parameter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question