Multiple WMI Connections



I wrote a WMI script to connect to iterate through a list of 2,000
workstations and:

1. ping each one using win32_pingstatus
2. if online connect with WMI with an array of passwords
3. get the version of a specific file and write it to a CSV file

What I discovered was that even with the initial PING the list took too
long to process.

As a possible solution I took the list of 2000 and broke it down into 4
lists of 500.

The report generated showed the incorrect results and I am concerned I
am missing something.

What needs to be changed in a script if multiple instances are running?
Would the variables each script creates need to be uniquely named?

Todd

.



Relevant Pages

  • [Full-Disclosure] Re: [0day] ExploitLabs.com CGI Script Irony (was: Vote Today)
    ... It is also my belief that Donnie Werner's ... For the benefit of the lists, ... Filtering Flaws in ExploitLabs.com CGI Script ... Donnie's script insecurely sanitizes the "host" URI parameter. ...
    (Full-Disclosure)
  • Re: cp/mv with verify step?
    ... script), so a quick'n'dirty check would be to see if the last argument ... is a directory (in which case you append each source filename in turn) ... for every "target" file. ... Generating the lists *could* be scripted, ...
    (comp.os.linux.misc)
  • Re: checking dns records from named.conf
    ... > I have already modified your script to read named.conf file and parse it ... generated lists to tell me which of the 20 nameservers I'm responsible ... to detect sub-domains of zones we also hold. ... Writing something to keep a single DNS platform neat and tidy is on my ...
    (freebsd-isp)
  • Re: Tracking Dependencies
    ... Solved with simple script! ... Hal Vaughan wrote: ... #Get the lists of program and module directories from the argument list ... # Loop through all the files given, read each file into an array ...
    (comp.lang.perl.misc)
  • Re: Script help: convert music files to be compatible with MPD
    ... Now i use a text editor to create a script, ... Then i open filelist with nedit and select and copy the list of files at the bottom of the file. ... Sometimes i use the shell command 'paste' to join the two lists together into one script - depending on what exactly i'm doing. ... If you haven't got an editor that can copy and paste columns, ...
    (uk.comp.os.linux)

Loading