--------------------
From: =?Utf-8?B?anJwcmVzdG9u?= <
[email protected]>
Subject: Re: I want to disable USB ports remotely
Date: Fri, 28 May 2004 07:51:03 -0700
Unfortunately, this is not something the organization is willing to throw
money at, aside from my time/$$$. Fortunately, there are only about 10
workstations that currently require this task to be performed.
Download the DevCon utility:
"FILE: DevCon Command Line Utility Alternative to Device Manager"
http://support.microsoft.com/?kbid=311272
To disable all usb on a machine:
devcon disable @usb\*
The DevCon utility can run against remote machines, but I was unable to get
this to work.
You could place the exe in a share and run it in a login script if you want
to.
Anyways, this is the tool that does it
(BTW - There is a registry key that controls the enabled/disabled status:
"DisableCount" in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\ROOT_HUB\4&1a1910ec&0\C
ontrol
Of course, the ID of the device will differ...it's returned by "devcon find
usb\*" however)
--
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no
rights.
~ Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
~ Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.