Jeg har fundet følgende løsning:
Hiding drives
One of the biggest restrictions you can put in place by editing the Registry
is to hide drive letters that appear in My Computer. This can help with
security and prevent files and folders being tampered with. While you can
make this change apply to the whole system by editing a key in HKEY_LOCAL_
MACHINE, you'll probably want to do it on a per-user basis.
Therefore, you'll need to log into the user account that needs to be changed
then using the Registry Editor locate HKEY_CURRENT_USER\
Software\Microsoft\Windows\ CurrentVersion\Policies\Explorer. You'll need to
create a DWORD value and call it NoDrives, the value that you give it will
determine which drives will be made invisible. You'll need to use a
different number depending on the actual drive letter you want to hide as
follows:
A: 1
B: 2
C: 4
D: 8
E: 16,
F: 32
G: 64
H: 128
I: 256
J: 512
K: 1024
L: 2048
M: 4096
N: 8192
O: 16384
P: 32768
Q: 65536
R: 131072
S: 262144
T: 524288
U: 1048576
V: 2097152
W: 4194304
X: 8388608
Y: 16777216
Z: 33554432
If you want to hide a drive whose letter is C: then you'll need to give
NoDrives a value of 4. To hide two or more drive letters you'll need to add
the values together. For example, to make C: and D: invisible you'll need to
add 4 + 8 and set the value to 12.
You can make all drives in My Computer invisible by setting the value to
67108863. All values should be entered as Decimal and not Hexadecimal. A
restart will be required for any changes to take effect. Using the same
decimal values you can make a slightly different alteration. This will leave
a drive letter visible but will make it impossible for a user to view the
contents of that drive. It will also prevent them using the commands Run,
Map Network Drive, or the Dir command to view the contents of folders on the
drives. Create a new DWORD value called NoViewOnDrive and use the same
values detailed above to prevent a user browsing the contents of a
particular drive.
www.pcanswers.co.uk/tutorials/default.asp?articleid=28823&page=1&pagetypeid=
4&subsectionid=607
--
Venlig hilsen
Gnistn