made a mistake and deleted USBSTOR service

'(sc.exe create/delete) - Create or Delete Services' tutorial was cited in a Microsoft Answer post in 2010.

The "sc.exe create/delete" - Create or Delete Services tutorial was cited in a Microsoft Answer post in 2010.

Subject: made a mistake and deleted USBSTOR service; how do I get it back? 
Date: Sep 3, 2010
Author: ssybesma

>Used the command "SC DELETE USBSTOR" in an effort to remove USBSTOR 
>registry key containing old flash drives; cannot get USBSTOR service 
>started again (doesn't exist), and still cannot remove USBSTOR 
>registry entry so I can delete old USB flash drives; trying to avoid 
>OS reinstall.
>I should add, this is on Windows Vista Basic.
Do you know if installing this will rebuild the entire USBStor 
service in the registry? That's what needs to happen to fix this, 
since I deleted with the SC command at the command line using this 
exact command: "SC DELETE USBSTOR"

Hoping to re-create the service, but I don't have all the necessary 
details for the command line (after trying it once, it failed to 

This is the command line I tried: "SC CREATE USBSTOR binPath= 
"C:\WINDOWS\SYSTEM32\DEVICES\USBSTOR.SYS -k runservice" DisplayName= 
"USB Mass Storage"

I found a command line for creating a different service at this 

...and it was the only thing I could find that I could try to adapt 
to my situation. Since it didn't work, I simply did what I did the 
first time and deleted the USBStor service I tried to create.

Being there was so much guessing involved, I don't know what the 
original command line would have been to create the USBStor service 
and I think there are probably some other switches that go along with 
the command line to create it I'm not sure about the 
display name (what it should appear as in SERVICES.MSC)


Table of Contents

 About This Book

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

Reference Citations in 2010

made a mistake and deleted USBSTOR service

 How to use HtmlEncode w/Ext controls

 LONG RAW + ORA-00984 - Column not allowed here?

 How to change default character encoding for Cyrillic

 2 ways ssl not working: bad certificate

 [windows_internals]Services, Part I: service overview

 SSL: Received fatal alert: certificate_unknown Problem

 Queue can not be created at runtime

 Getting Up and Running with OpenMoco Slim

 Second Life: Twitter OAuth Library

 Formating of SQL value for BLOB types (as hex vs ascii-bytes)

 Bug #51165: Using XSD_ANYTYPE removes method response tags...

 WLS : JDBC : oracle.sql.CLOB type

 How to Get Rid of the NetZero Task Bar

 How can I use a pfx keystore with stoneware?

 Apache Camel: Crypto

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version