I will like to run a exe located in a particular directory. After exe is performed I will like then to a restart a service.
I will like to run this exe on all Domain Controllers in my environment. Does anyone know how to performed this in Powershell.
The cmdlets I will like to use for the DC's are "Get-ADDomainControllers"
The user the foreach statement.
Example of directory: Path of the exe; Filename of exe (watchdog.exe)
Can someone please provide the syntax for this