Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script for: "does any computer have a flash drive?" 4

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
hi,
i have been asked to write a script that polls all computers (about 40) in the network and examines the drive letters to see if anybody has a flash drive inserted in the USB port. all the computers in the network have a hard drive (c:) and a cd-rom drive (d:). so, i guess the script will look to see if anybody has drive letters e:, f:, etc. can this be done with a vb script using wmi facility?
thanks.
 
Very odd, but you can eliminate the ping check like this:

Code:
Do until objRecordSet.EOF
    Report = CheckUSB(objRecordSet.Fields("name"))   
    objFile.Write Report
    objrecordset.MoveNext
loop

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top