I have a huge network of PCs that are all in a same domain (active directory). I want to enable WMI service and relative port, then set the domain's administrator credentials to WMI credentials over my entire network in the group policy.
For the Work Grouped network I created a batch file that does what I want but for the domain I want to do the best, execute the batch file remotely over entire network using active directory.
I know that the active directory lets me execute MSI Package.
The problem is: How can I create an MSI package that can execute a batch command like this:
@Netsh firewall set service RemoteAdmin enable
I would prefer to do this in C# .NET 4!