hey guys,
for a possible job I need to know, if there is any way on windows (XP, Vista, 7) to modify an external device that it cant be read and modified by another PC. This means, that too example an USB stick can only be read by PCs of my choice.
Any ideas?
deny access to external device
deny access to external device
pb 5.11
-
Little John
- Addict

- Posts: 4807
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: deny access to external device
Hi,
maybe this suits your needs (page in German):
HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Control\ StorageDevicePolicies
WriteProtect = 1
Another possibility is to encrypt the whole USB drive, e.g. using TrueCrypt.
Regards, Little John
maybe this suits your needs (page in German):
HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Control\ StorageDevicePolicies
WriteProtect = 1
Another possibility is to encrypt the whole USB drive, e.g. using TrueCrypt.
Regards, Little John
Re: deny access to external device
This may be an option, but it seems, that this works only for the PC you change the registry. It would be needed, that the stick wont be accessible (or the content editable) on any other PC. I think this cant be done, but I often read surprising things in this board 
Here something about the background: A company has the problem, that very often some users take USB from work to home and infect them. As a solution, the USB sticks should only work, if a special application is installed.
Here something about the background: A company has the problem, that very often some users take USB from work to home and infect them. As a solution, the USB sticks should only work, if a special application is installed.
pb 5.11
Re: deny access to external device
At my workplace, NO usb devices can be used at all. If I plug one in,
and try to open it, it says the device is unavailable (or something).
The dumb thing is, the company has NOT disabled CD-ROMs! So I can
just use a rewritable disc to bring things in to run at work! Stupid IT
department!
and try to open it, it says the device is unavailable (or something).
The dumb thing is, the company has NOT disabled CD-ROMs! So I can
just use a rewritable disc to bring things in to run at work! Stupid IT
department!
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
Little John
- Addict

- Posts: 4807
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: deny access to external device
It depends ... I assume the users do not do so deliberately, but it happens accidentally, right?gnasen wrote:Here something about the background: A company has the problem, that very often some users take USB from work to home and infect them. As a solution, the USB sticks should only work, if a special application is installed.
Maybe the company can format the respective USB drives with a file system, that is by default not supported by Windows (e.g. Ext3)? Then on the computers at work, they have to install the proper drivers, and the employees cannot access these USB drives at home. Or do the employees actually need to READ the drives at home? Then an engineer of the company can install software on their home computers, that only allows reading that file system, but no writing.
IMHO best would be a "human solution" rather then a technical one: Tell the employees not to do strange things with these USB drives. But I know that this often does not work.
Regards, Little John
Re: deny access to external device
Any user with Linux installed would be able to access the drive anyway, would they not ?Maybe the company can format the respective USB drives with a file system, that is by default not supported by Windows (e.g. Ext3)? Then on the computers at work, they have to install the proper drivers, and the employees cannot access these USB drives at home.
HP Z800 Workstation
CPU : Dual Xeon 5690 3.46GHz
RAM : 192GB RAM
GPU : NVIDIA QUADRO P5000 16GB
CPU : Dual Xeon 5690 3.46GHz
RAM : 192GB RAM
GPU : NVIDIA QUADRO P5000 16GB
-
Little John
- Addict

- Posts: 4807
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: deny access to external device
Mohawk70 wrote:Any user with Linux installed would be able to access the drive anyway, would they not ?Maybe the company can format the respective USB drives with a file system, that is by default not supported by Windows (e.g. Ext3)? Then on the computers at work, they have to install the proper drivers, and the employees cannot access these USB drives at home.
Little John wrote:It depends ... I assume the users do not do so deliberately, but it happens accidentally, right?
Re: deny access to external device
We also were looking for somekind solution a few month ago.gnasen wrote:A company has the problem, that very often some users take USB from work to home and infect them. As a solution, the USB sticks should only work, if a special application is installed.
If a comercial Solution will Be acceptable for you, you may have a Look at CynapsPro - Data Endpoint Protection.
Also Secure it Easy may be an acceptable Solution for less than 15€/PC.
Last but Not least, there is a promising Freeware available: USB-Bouncer.
Greetz, PL.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
- utopiomania
- Addict

- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: deny access to external device
Maybe you could detect the USB like this and do something, like accept it or format it straight away
Code: Select all
procedure deviceEventCallback(windowID, message, wParam, lParam)
protected result, drive.s
;callback procedure to handle camera connect/disconnect events
result = #PB_PROCESSPUREBASICEVENTS
select message
case QueryCancelAutoPlay
;disable Autorun
result = 1
case #WM_DEVICECHANGE
select wParam
case #DBT_DEVICEARRIVAL, #DBT_DEVICEREMOVECOMPLETE
;removable device inserted or removed
numFiles = 0
srcPath = ""
drvLetter = findCamera()
if len(drvLetter)
;camera connected
srcPath = drvLetter + "DCIM\"
numFiles = getAllsrcFiles(srcPath, fileExt.s, numFiles, 0, 0, 1)
endIf
;Update step2
setGadgetText(#WEB, wizardStep2())
endSelect
endSelect
procedureReturn result
endProcedure

