I use net view combined with psexec in a few of my command scripts (most
notably the ones that do *gpupdate* and *wuauclt /detectnow*), however I
find that you've got to have your browser service in good working order for
it to function as expected. Sometimes when the browser is getting it's
electrons in a twist, I'll find machines in the server subnet not appearing
when the script is run from the workstations subnet, and vice versa. If you
find this issue, maybe it's time to break out the dark mysteries of *browstat
*and find out how your browsing is doing.

On 26 March 2010 00:36, Ben Scott <[email protected]> wrote:

> Here's another batch script I realized others might find useful.  It
> runs a command for every computer it finds on the network (via "NET
> VIEW").  Useful when you want to do something on every computer
> currently running on the LAN.  You can specify patterns to match and
> patterns to exclude.
>
> The command runs on the local computer, but you could combine it with
> PSEXEC to run the commands on the remote computer.
>
> It includes an example that will concisely list the version of two
> different OCX control files for each matching computer.
>
> http://sites.google.com/site/mailvortex/windows/for-each-computer
>
> -- Ben
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>



-- 
"On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
the machine wrong figures, will the right answers come out?' I am not able
rightly to apprehend the kind of confusion of ideas that could provoke such
a question."

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to