I want to run a script that will show the current replication status of a domain controller.
if you run: "for /f "tokens=12 delims=," %a in ('repadmin /showrepl <CentralHUBServerName> /csv ^| find /i """DC=domain,DC=com""" ^|find /i "${Node.Caption}"') do @echo Statistic: %a & exit %a"
it would work, but only if I could get ${Node.Caption} to resolve, any ideas?
it might go to unknown status instead of down depending on what that field becomes, but that ok.