Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Citrix server local drives 1

Status
Not open for further replies.

DarraghFitzpatrick

IS-IT--Management
Dec 18, 2002
147
US
Windows 2000 server SP3
XP Feature Release 2
ICA32 client 6.xx
When a user logs into my citrix server the C: and D: drives of the server are visible to the user in Explorer/My Computer. Can these local server drives be hidden from the users ?

Any help appreciated.

Darragh
 
You will need to do so through local computer policies in the MMC.
 
I have checked out the MMC policies, they only deal with hiding client drives.

I need to hide the local Server dirves from the client upon login.
i.e

client logs in, opens my computer, drives he/she can see are

c:
(server c:)
d:
(server d:)
s:
(mapped drive to another servers share)
O:
(client c:)
P:
(client d:)

I want to prevent the user from seeing c: and d:

Thanks

Darragh
 
The way I solved this was to remove My Computer through MMC policies, then place a shortcut to the local c-drive on the "All Users" desktop. They really do not need My Computer, they just need access to their own drives.
 
How to Hide Drives on NT 4.0 TSE and Win2k

(This will need to be done on all servers)

" Copy the "HideDrives.vbs" file into the "S:\WINNT\Application Compatibility Scripts\" folder. This file runs every time a session is started on the Terminal Server.
" Add the "call %SystemRoot%\Application Compatibility Scripts\HideDrives.vbs"" to the RootDrv.Cmd file and save it.
" If you need to modify which drives need to be visible or hidden, launch the "hidedrive.xls" to determine the appropriate registry value.
" Modify the number in the following line everywhere it appears in the "HideDrives.vbs" file.

This is the line in hidedrives.vbs. Just modify the NUMBER to match what hidedrive.xls tells you.

objShell.RegWrite RegPath & "\NoDrives", "123456789", "REG_DWORD"



DRIVE HIDDEN? Binary Selected
Letter 1/0 (1/0)*Binary
A 0 1 0
B 1 2 2
C 0 4 0
D 1 8 8
E 1 16 16
F 1 32 32
G 1 64 64
H 1 128 128
I 1 256 256
J 1 512 512
K 1 1024 1024
L 1 2048 2048
M 1 4096 4096
N 1 8192 8192
O 1 16384 16384
P 1 32768 32768
Q 1 65536 65536
R 1 131072 131072
S 1 262144 262144
T 1 524288 524288
U 1 1048576 1048576
V 0 2097152 0
W 1 4194304 4194304
X 1 8388608 8388608
Y 1 16777216 16777216
Z 1 33554432 33554432

Hide Drive Value 65011706


*********
SCRIPT
*********
' Regisry Modifications for Terminal Servers
'
' Written By: Christopher Stogiera
' Compaq Computer Corp.
' 2-17-2002

ON ERROR Resume NEXT
Dim RegPath
Dim objShell

' Hide Drive Registry Settings
' Hides All Drive Except v: X: C: A:

RegPath = "HKCU\Software\Microsoft\Windows\Current Version\Policies\Explorer"
Set objShell = CreateObject("WScript.Shell")
' objShell.RegDelete (RegPath & "\NoDrives")
objShell.RegWrite RegPath & "\NoDrives", "56623098", "REG_DWORD"
RegPath = ""
objShell = ""

RegPath = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
Set objShell = CreateObject("WScript.Shell")
' objShell.RegDelete (RegPath & "\NoDrives")
objShell.RegWrite RegPath & "\NoDrives", "56623098", "REG_DWORD"
RegPath = ""
objShell = ""
 
I have used the MMC / Group Policy Plugin to hide the drives.

Open MMC. click on Console and then Add/ Remove Plugin
Click on Add then find Group Policy. Then Click finish, Close, then ok in order of the windows being open.

In the Group Policy go to User Configuration>Administrativce Templates>Windows Components>Windows Explorer Then the Policy is Hide these specified Drives. and you have 7 Options

1. Restrict A and B Drives Only
2. Restrict C drive Only
3. Restrict D drive Only
4. Restrict A, B, and C Drives Only
5. Restrict A, B, C, and D drives Only
6. Restrict All Drives
7. Do Not Restrict Drives

This has been the easiest way that I have found to hide the drives.

If you need to get to them then open up Explorer and in the address field type the drive letter in question.

Have a great Day.
Phlip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top