^ Thanks, Moby!
Anyway, i've done a bit of digging around and cobbled the following script:
@echo off
echo PSexec Cleanup Utility V1.0
echo.
echo.
if "%1" NEQ "" goto :checkfile
echo Usage: cleanup hosts_file
echo.
goto :eof
:checkfile
if exist %1 goto :doping
echo Input file does not exist
echo.
goto :eof
:doping
for /f "tokens=*" %%I in (%1) do call :cleanup %%I
goto :eof
:cleanup
echo Cleaning up machine: %1 ...
sc \\%1 stop psexesvc
del \\%1\admin$\psexesvc.exe
del \\%1\admin$\system32\psexesvc.exe
sc \\%1 delete psexesvc
echo ----------------------------------------------------
:: DONE
^ No space after '::' and DONE on the last line. I had to show one to stop a smiley being displayed!
Just call it cleanup.bat and create a file listing your hostnames/IP addresses and then run the script with the name of hostnames file as the argument.
I hope that helps someone out in the future if you ever need to script remote commands to multiple machines.