Depends on - how did you disable it? It would be the easiest to check it
that way.

Otherwise I'd suggest checking for the enabled device usbstor, you can
enumerate it via win32_systemdriver.

You just have to check which of it's properties you want to check to figure
out if it's possibly enabled on the system.

Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService =
SWBemlocator.ConnectServer(strComputer,"\root\CIMV2",UserName,Password)
Set colItems = objWMIService.ExecQuery("Select * from Win32_SystemDriver
WHERE Name='USBSTOR'",,48)

Background: USBStor is the device which takes care that USB-Memory-Devices
such as a thubdrive are working.

Gruesse - Sincerely, 

Ulf B. Simon-Weidner 

  MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
  Weblog: http://msmvps.org/UlfBSimonWeidner
  Website: http://www.windowsserverfaq.org
  Profile:
http://mvp.support.microsoft.com/profile=35E388DE-4885-4308-B489-F2F1214C811
D   


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Dogra
Sent: Saturday, January 07, 2006 3:04 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] USB Detection in my Network

Hi All,

Is thr any way by which i can check for USB Enabled PCs in my Network.
I have been given a task to generate a report for any kind of Vulnerability.

Thanks in advance.

--
Ravi Dogra
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org//

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to