I created a batch file to update a host on a list of servers. I'd like a little assistance in a way to then make another text file with the server name that got updated successfully. Here's what I have. It's pretty simple. Just looking for something to track
success...
::@echo off
set CompList=CompList.txt
setlocal enabledelayedexpansion
for /f "usebackq tokens=*" %%A in ("%CompList%") do (
type hosts>>\\%%A\c$\windows\system32\drivers\etc\hosts
)