Running Commands on Remote Workstations

Re: Running Commands on Remote Workstations

You can install a telnet daemon on that pc and then when u telnet in u can use all the DOS commands that you can use locally. Hence the telnet DOS window would be like opening up cmd window locally.

With soon you can schedule jobs on multiple PC's via a batch file. For instance if you put all the PC names in a txt file, and then call the file and pick up each PC name and run in a loop with the "for /f" command. Here's what the batch would look like:


for /f %%a in comp.txt do (soon %%a gpupdate)

exit

And your comp.txt file would be:
pc1
pc2
pc3

Its a very very basic way to it but it should work. You can add error handling and loggin etc in it but that's for the next lesson. Hope that helps.