Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Computer mismatch

I have a command that does a list of their internal IP address. Here's the command

for /f "tokens=14" %%a in ('ipconfig ^| findstr IPv4') do echo %%a>\\Public\temp\%computername%---%%a.txt

One problem I am getting in this is that the target doesn't match the hostname reported. One thing for me to find this out is by providing a soft-of %target variable. But I do not know if such variable is supported?

Wonder how can i get around this?

0

Comments

1 comment
Date Votes
  • I've been trying to research on Custom variables. Can it include the Target computer?

    0