P
P
Pavel2019-11-13 06:56:45
PowerShell
Pavel, 2019-11-13 06:56:45

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

3 answer(s)
V
Vladimir Korotenko, 2019-11-13
@Svarog7

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...

D
Dmitry Shitskov, 2019-11-13
@Zarom

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.

M
Mr. Anderson, 2019-11-13
@roman_tonkoshkurov

Read about psexec .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question