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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to Hide the servers C: drive and SWAP File drive

Status
Not open for further replies.

chrism0n

MIS
Jul 19, 2002
96
US
What is the easiest way to hide the Citrix Servers C Drive, and the E Drive (SWAP FILE) from the users. I don't want people saving files all over the place. I have MetaFrame XP on Win2k Server. I DO not have Active Directory or published Apps.
Thanks
Chris
 
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 = ""
 
Thanks,
Okay next question.. I have been poking arround, but haven't seen it yet. Is there a way to hide the Shutdown Option on the start menu of the users????
 
I already have it "disabled and removed" according to Group Policies. Even though you can't actually shut down the machine you can see Shutdown
 
Simple one...
Add the following registry entry in all user's profiles (add to Default Users so new profiles automatically get it..)

Key: HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value: NoClose
Type: REG_DWORD
Data: 1 (Hide Shutdown), or 0 (Don't Hide).

Cheers,
Sam

Please let members know if you found their posts helpful.
 
You should be able to lock down NTFS enough to not have to physically hide the drive... But in addition to the answer given to your second question; make sure you display logoff in the default user profile or the user will not have a way to correctly shut down the session.

The best way to do this is create a generic user log on get the desktop the way you want it to look without any policy applied, then copy that users profile over the default user profile using "Copy to" on the user profile tab in system properties. (Make sure you don't open any office apps though or you will change some settings you don't want to mess with).

Then create the poicy to remove everything else you don't want.

Hope this helps,
 
Sorry for not getting back sooner - Thanks to All!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top