Link to home
Start Free TrialLog in
Avatar of sirbounty
sirbountyFlag for United States of America

asked on

Get hardware info via wsh/wmi

I have a script that works fantastic in setting up an LTO backup device under Windows 2003.
Only problem (well, haven't run across it yet, but want to provide for it, jic) is that I have to explicitly declare the port/id/lun.
Is there a way that I can dynamically poll my scsi device for this information? (willing to increase points if there is...)
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sirbounty

ASKER

This will get me started for sure - thanx amit_g.
I'm off to do some testing...it may be later this afternoon/tomorrow before I follow up and/or close this out...Thanx again! :^)
I think Win32_TapeDrive may give me what I'm after....
Sorry 'bout that... forget to increase the points...thanx
Thanks :) There was no need to increase points though.

Which class in the end did you use?
Well, I'm trying to get info on the library, tape drive and IDs for both...so, I'm using Win32_TapeDrive and one of the SCSI for now...I forget where I found the library - but the link includes many places to look...so thanx.