I would like to do the equal of
net view /all
followed by
nslookup COMPUTERNAME
in a oneliner rendering something like
\\COMPUTERNAME1 192.168.1.1
\\COMPUTERNAME2 192.168.1.2
Can I? Or do I really need to script it like it's done here?