I am trying to open a few constant ping windows a certain size at certain positions and send reboot commands to each. Then rdp to another server and automatically reboot it(this server is not in the same domain and I can't ping it). All from a batch file.
This is what I have so far:
start cmd /k ping x.x.x.x -t
start cmd /k ping y.y.y.y -t
start cmd /k ping z.z.z.z -t
shutdown -r -f -m \x.x.x.x
shutdown -r -f -m \y.y.y.y
shutdown -r -f -m \z.z.z.z
mstsc c:\srv1.rdp
end
Right now these ping windows open on top of each other. And attempts to make srv1 reboot on its own have been unsuccessful. I have tried creating a batch file on srv1 then in the rdp file telling it to open this program, but couldn't get it to work.
Any ideas?
I can help you with the windows positioning. The other part doesn't sound batch related to me.
Just add as many servers as you want and set the Ypos to a number greater than before.