i want to execute winrm qccommand on all computers in domain from one of the computer in domain.
all computers in domain are of windows OS.
suggest best way to do this.
Thank you in advance.
i want to execute winrm qc command on all computers in domain from one
Share
Given that you’re asking on SO, I’m going to assume that you want to know about how to develop code to do this.
In this case, you basically have two separate pieces to look at:
There are a couple of ways to find computers, but probably the simplest is to use
NetServerEnum. Despite the name, it can enumerate workstations as well as servers (though you can restrict it to servers, or even more specific subsets, such as machines running SQL Server, print servers, etc.)To run the code on each, you probably want to use the Task Scheduler API.