Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > USB Access Control in Vista

Reply
Fix Vista Errors
Thread Tools Display Modes

USB Access Control in Vista

 
 
vipink85
Guest
Posts: n/a

 
      10-29-2009



Hi!

I am having a problem in handling usb access control. I know we can stop the
USB access by setting '4' in "SYSTEM\\CurrentControlSet\\Services\\USBStor" .
In Vista case, if drivers are not installed and if we connect USb then the
drivers are isntalled automatically and the above registry value changes
automatically to '3'.
Is there any way by which we can avoid installing the drivers? I need to do
it programatically.
 
Reply With Quote
 
Kerem Gümrükcü
Guest
Posts: n/a

 
      10-29-2009
Hi (whats your name real name?),

well, have a look at this:

[Article ID: 823732 - Last Review: September 15, 2009 - Revision: 6.0
How can I prevent users from connecting to a USB storage device?]
http://support.microsoft.com/kb/823732/en-us

This article does cover windows W2K,XP and 2003 but i am pretty
sure that you can do the same on vista and seven, afaik the WRP
wont step into it, as long as you do that elevated and on admin token!
You can do that easily with Windows Security API within your code,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------

"vipink85" <> schrieb im Newsbeitrag
news:F95AB7CB-E16C-46F2-9EB6-...
> Hi!
>
> I am having a problem in handling usb access control. I know we can stop
> the
> USB access by setting '4' in
> "SYSTEM\\CurrentControlSet\\Services\\USBStor" .
> In Vista case, if drivers are not installed and if we connect USb then the
> drivers are isntalled automatically and the above registry value changes
> automatically to '3'.
> Is there any way by which we can avoid installing the drivers? I need to
> do
> it programatically.


 
Reply With Quote
 
Kerem Gümrükcü
Guest
Posts: n/a

 
      10-29-2009
Hi,

did it work on Vista, could you confirm it please,...


Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------

"dsrking" <> schrieb im Newsbeitrag
news:ff881f9e-f3ba-4c49-9939-...
> Ya. It is useful.
>
> -D


 
Reply With Quote
 
vipink85
Guest
Posts: n/a

 
      10-30-2009
Hi

> Hi (whats your name real name?),

Vipin

> well, have a look at this:
>
> [Article ID: 823732 - Last Review: September 15, 2009 - Revision: 6.0
> How can I prevent users from connecting to a USB storage device?]
> http://support.microsoft.com/kb/823732/en-us
>
> This article does cover windows W2K,XP and 2003 but i am pretty
> sure that you can do the same on vista and seven, afaik the WRP
> wont step into it, as long as you do that elevated and on admin token!
> You can do that easily with Windows Security API within your code,...


Sorry for late reply.
I looked at the link and changed the permissions of the file manually. But
still Vista is able to install the drivers.
I had changed the permissions for usbstor.inf and usbstor.pnf files.

Regards,
Vipin
 
Reply With Quote
 
vipink85
Guest
Posts: n/a

 
      11-03-2009
Hi!

I found 2 solutions

1. Disabling permission of "SYSTEM\\CurrentControlSet\\Services\\USBStor" in
registry.

2. Using Microsoft's "Devcon" tool.

Regards,
Vipin

"Kerem Gümrükcü" wrote:

> Hi (whats your name real name?),
>
> well, have a look at this:
>
> [Article ID: 823732 - Last Review: September 15, 2009 - Revision: 6.0
> How can I prevent users from connecting to a USB storage device?]
> http://support.microsoft.com/kb/823732/en-us
>
> This article does cover windows W2K,XP and 2003 but i am pretty
> sure that you can do the same on vista and seven, afaik the WRP
> wont step into it, as long as you do that elevated and on admin token!
> You can do that easily with Windows Security API within your code,...
>
> Regards
>
> Kerem
>
> --
> -----------------------
> Beste Grüsse / Best regards / Votre bien devoue
> Kerem Gümrükcü
> Latest Project: http://www.pro-it-education.de/software/deviceremover
> Latest Open-Source Projects: http://entwicklung.junetz.de
> -----------------------
>
> "vipink85" <> schrieb im Newsbeitrag
> news:F95AB7CB-E16C-46F2-9EB6-...
> > Hi!
> >
> > I am having a problem in handling usb access control. I know we can stop
> > the
> > USB access by setting '4' in
> > "SYSTEM\\CurrentControlSet\\Services\\USBStor" .
> > In Vista case, if drivers are not installed and if we connect USb then the
> > drivers are isntalled automatically and the above registry value changes
> > automatically to '3'.
> > Is there any way by which we can avoid installing the drivers? I need to
> > do
> > it programatically.

>
> .
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Vista legally for at least one year/ Vista Activation doesn't stop Piracy Chad Harris Windows Vista Installation 56 12-25-2008 02:34 PM
How do you repair windows entirely using your Windows Vista DVD Jonathan Yaniv- Windows Live Butterfly Expert Windows Vista Performance 16 02-12-2008 07:28 PM
Slow Vista startup Jedi940 Windows Vista Performance 1 01-13-2008 09:50 PM
Can Vista be installed on top of itsself? Jeff Ingram Windows Vista Installation 5 03-20-2007 08:48 PM
Independent assessment of problems with Vista dual boot installer bmoag Windows Vista Installation 8 12-01-2006 03:25 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59