如何以编程方式限制对USB(可移动)驱动程序的访问? [英] How to programatically restrict access to USB (removable) driver?

查看:90
本文介绍了如何以编程方式限制对USB(可移动)驱动程序的访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式限制对USB(可移动)驱动程序的访问?更确切地说,我需要编写一个程序来设置USB驱动程序上的密码.有人可以解释如何开始或举一个例子吗?

How to programatically restrict access to USB (removable) driver? More exactly, I need to write a program that sets the password on the USB driver. Can someone explain how to start or bring an example?

推荐答案

是的,那很复杂...
首先,无法在设备驱动程序上设置密码(除非您自己编写设备驱动程序,或者在USB驱动程序或磁盘驱动程序之上安装过滤器驱动程序)
其次,以编程方式编辑本地策略或组策略不适合于胆小的人.
http://www.codeproject.com/Questions/74596/programming-in-gpedit- msc.aspx [ ^ ]
Yes, and that''s quite complicated...
First, there is no way of setting a password on a device driver.(except if you write the device driver yourself, or you install a filter driver on top of the USB driver or disk driver)
Second, editing the local policies or group policies programmatically is not for the faint of heart...
http://www.codeproject.com/Questions/74596/programming-in-gpedit-msc.aspx[^]


在系统策略中控制对USB设备的访问.
计算机->管理模板->系统->设备安装限制.
使用gpedit.msc在本地级别上设置这些策略,在域设置中,要求管理员更新组策略层次结构.

Saurabh.Garg:
OP特别询问了如何以编程方式控制访问.
Access to USB devices is controlled in the system policy.
Computer->Administrative Templates->System->Device installation restrictions.
use gpedit.msc to set these policies at the local level, in a domain setting, ask the administrator to update the Group Policy hierarchy.

Saurabh.Garg:
OP specifically asked how to control access programmatically.


这篇关于如何以编程方式限制对USB(可移动)驱动程序的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆