thanks bro, you put me to workanswered by ai
off
REM List of computer names or IP addresses
set "computers=computer1 computer2 computer3"
REM Path to the psexec utility
set "psexec_path=path\to\psexec.exe"
REM Path to the executable file
set "executable=path\to\your\file.exe"
REM Username and password for remote execution (if required)
set "username=your_username"
set "password=your_password"
REM Loop through each computer and run the executable using psexec
for %%a in (%computers%) do (
echo Running %executable% on %%a
%psexec_path% \\%%a -u %username% -p %password% %executable%
)
pause
this also works on local/domain level: user