Page 1 of 1 1
Topic Options
#151233 - 2005-11-09 06:48 PM Hide mapped drives
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Ok instead of doing tons of digging, is there an easy way to hide a drive that is mapped as part of the login script?

Reg hack, switches, special way of writing the map string, any option is good
_________________________
Today is the tomorrow you worried about yesterday.

Top
#151234 - 2005-11-09 07:01 PM Re: Hide mapped drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There are reg hacks, GPOs, and TweakUI. Take your pick.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#151235 - 2005-11-09 07:10 PM Re: Hide mapped drives
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
I've done this with "TaskStation" GPO templates from Microsoft for public access terminals. Since GPOs are just GUInterfaces for editing the registry...... Reg is possible.
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#151236 - 2005-11-09 07:23 PM Re: Hide mapped drives
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Whatever works best with KIX.
This is for an application that was poorly written that is run terminal servers. It requires a mapped drive to operate, and we don't want the users to be able to see the mapping.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#151237 - 2005-11-10 05:30 AM Re: Hide mapped drives
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Some hint please.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#151238 - 2005-11-10 07:35 AM Re: Hide mapped drives
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Well Les already gave you a clue. I would probably start with TWEAKUI 1.33 from Microsoft and install it on the TermServ and try to hide the drives from the user. If it works great, if not well then have to start doing some Google searching

Tweak UI 1.33
 

Top
#151239 - 2005-11-10 09:58 AM Re: Hide mapped drives
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
On our Citrix farm we hide (and disable access to) a number of drives.

There are two registry keys which do this for you. Here are the entries that I use in my custom ADM template to restrict access to the system drive (C:), CD-ROM drive (N:) and software installation drive (O:):
Code:
CLASS USER

CATEGORY !!SGB_Bespoke

CATEGORY !!SGB_Explorer
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

POLICY !!SGB_Explorer_NoDrives
PART !!SGB_Explorer_NoDrivesDropdown DROPDOWNLIST NOSORT REQUIRED
VALUENAME "NoDrives"
ITEMLIST
NAME !!SGB_DriveList_C VALUE NUMERIC 4
NAME !!SGB_DriveList_CNO VALUE NUMERIC 24580 DEFAULT
NAME !!SGB_DriveList_MNOP VALUE NUMERIC 61440
NAME !!SGB_DriveList_RestAllDrives VALUE NUMERIC 67108863
NAME !!SGB_DriveList_RestNoDrives VALUE NUMERIC 0
END ITEMLIST
END PART
END POLICY

POLICY !!SGB_Explorer_NoViewOnDrive
PART !!SGB_Explorer_NoDrivesDropdown DROPDOWNLIST NOSORT REQUIRED
VALUENAME "NoViewOnDrive"
ITEMLIST
NAME !!SGB_DriveList_C VALUE NUMERIC 4
NAME !!SGB_DriveList_CNO VALUE NUMERIC 24580 DEFAULT
NAME !!SGB_DriveList_MNOP VALUE NUMERIC 61440
NAME !!SGB_DriveList_RestAllDrives VALUE NUMERIC 67108863
NAME !!SGB_DriveList_RestNoDrives VALUE NUMERIC 0
END ITEMLIST
END PART
END POLICY
END CATEGORY ; SGB_Explorer

END CATEGORY ; SGB_Bespoke

[strings]
SGB_Bespoke="SGB Custom Settings"
SGB_Explorer="Windows Explorer"
SGB_Explorer_NoViewOnDrive="Prevent access to drives from My Computer"
SGB_Explorer_NoDrives="Hide these specified drives in My Computer"
SGB_Explorer_NoDrivesDropdown="Pick one of the following combinations"
SGB_DriveList_C="Restrict C drive"
SGB_DriveList_CNO="New Metaframe Restrictions (C,N and O drives)"
SGB_DriveList_MNOP="Old Metaframe Restrictions (M,N,O and P drives)"
SGB_DriveList_RestNoDrives="No restriction"
SGB_DriveList_RestAllDrives="All restricted"

; vim600: ai ts=4 sw=4 filetype=conf



It's an extract from a much larger file, but all the relevant pieces should be there.

Top
#151240 - 2005-11-10 03:23 PM Re: Hide mapped drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The reg hack method requires that you bitmask the value for the desired result so there is no *easy* answer. If reg hack is the route you want to take then you may as well start googling.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#151241 - 2005-11-10 03:25 PM Re: Hide mapped drives
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Here is an example:
Hide drives 'ZYXW'
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDrives REG_DWORD 3C00000
where in binary it's: 11110000000000000000000000
each bit represents: ZYXWVUTSRQPONMLKJIHGFEDCBA
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#151242 - 2005-11-10 04:02 PM Re: Hide mapped drives
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I'd recommend using the ADM template that I posted above, either in GPO or as a NT style policy file.

I use the following script to calculate the number for the drive letter mask:
Code:
Break ON
; Calculate drive letters for registry
$sDrives="foo"
While $sDrives
"Enter drive letters: " GetS $sDrives
$sDrives=UCase($sDrives)
$iRegValue=0
While $sDrives
$iDriveVal=Exp(2,ASC($sDrives)-ASC("A"))
$iRegValue=$iRegValue+$iDriveVal
Left($sDrives,1)+": "+$iDriveVal ?
$sDrives=SubStr($sDrives,2)
Loop
If $iRegValue "Total: "+$iRegValue ? ? $sDrives="foo" EndIf
Loop

Function Exp($x,$y)
$Exp=1
While $y>0 $Exp=$Exp*$x $y=$y-1 Loop
EndFunction

Exit 0


Top
#151243 - 2005-11-10 04:28 PM Re: Hide mapped drives
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Thanks all, you have given me a good place start and that is what I asked.

I knew that this group would know faster than I could ever do it.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#151244 - 2005-11-10 06:48 PM Re: Hide mapped drives
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Nice little function there Richard.
Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 323 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.116 seconds in which 0.082 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org