It's a handy one to know.

-----Original Message-----
From: Ben Scott [mailto:[email protected]] 
Sent: Tuesday, 20 October 2009 10:26 AM
To: NT System Admin Issues
Subject: Re: Sysadmin mistake of the week

On Mon, Oct 19, 2009 at 8:18 PM, James Hill
<[email protected]> wrote:
> I've never used DEVCON before.  Using a command line to restart a hardware 
> device seems like something a Linux admin would do though :)

  Well, normally, I might have tried to restart the device using the
DEVMGMT GUI, with "Disable" followed by "Enable".  But Kurt Buff is
right in that my keyboard and mouse are USB.  I would be able to
disable them from the GUI, but re-enabling them....  I at least saw
*that* pitfall coming, and dodged it.  :)

  So I thought, "I bet I can script something".  Then I found DEVCON,
which had a single-operation "restart" command -- exactly what I
needed.  (Well, that, and the ability to recognize potentially
dangerous characters in command lines...)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to