Page 1 of 1 1
Topic Options
#11635 - 2001-08-18 02:11 AM More registry fun
Anonymous
Unregistered


I downloaded this Regmon program. Figured out a little bit of how to use it, and I've used it to trace what registry entries it checks for when someone goes to create a drive map.
The 3 that come up are:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrivesAutoRun
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun

So... I figuring that in my login script I have to edit these three entries in some way in order to disable the user's ablility to create network drives. So, ahh... little help please. I think I could figure out on my own what lines to add to my login script in order to execute the edit or add ... but I'm not sure what I would tell it to do.

~Ryan L
"No.. try not! Do . . or do not. There is no try." -Yoda

Top
#11636 - 2001-08-18 04:16 AM Re: More registry fun
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not quite. All those locations are policies do relate to drives but not in their mappings.
NoDrives
This one hides drive letters from listing in dialogs. Users could still map and use these drives, they just wouldn't see them. The value is a binary representation of the 26 letters of the alphabet, each bit representing a particular drive letter. On my Terminal Server, I use the following:
Hid drives 'ZYXW'
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDrives REG_DWORD 3C00000
where in binary it's: 11110000000000000000000000
each bit represents: ZYXWVUTSRQPONMLKJIHGFEDCBA

If you were to download the latest TweakUI, there you would find an option to hide drives. You can also disable Network Neighborhood (OS dependent). I haven't taken the time to figure what registry keys/values all the TweakUI options affect. On my lockdown boxes, I simply install TweakUI and set my options.

I believe the NoDrivesAutoRun value simply affects the behavior when you inset a CD with an Autorun.inf file.

I suggest that when you find a registry key/value you want more info on, try searching for it on TechNet.

I encourage you to look into system policies (WinNT/95 - PolEdit.exe) or group policies (Win2k - GPEdit.msc). They have what you're looking for. You can try ripping the reg key/value from the .adm file once you find it.

Sorry, I won't do the leg work for you. I'm a lazy 'teach a man to fish' kind of guy. Have fun.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#11637 - 2001-08-19 04:09 AM Re: More registry fun
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ryan,
One more thing I'd like to point out. While it is sometimes easier to do reg hacks than to setup policies, there are a few things to take in mind. If the reg hacks are in the logon script, the savy users will rip them and figure out how to undo them. Also logon scripted reg hacks are normally done in the users' context. They may not have write access to some portions of the registry you're trying to hack.

I do most reg hacks when I build my images that I clone. For serious lockdowns, I take away their access to RegEdit. I also change registry permissions. For general policy stuff, I use local or network or group policies. That way they can't rip them and undo them. Also, policies are not limited by user access limitations to certain registry keys.

Have you installed the Windows 2000 Professional Resource Kit yet? If you have, it has a Group Policy Reference that has the info I think you're looking for in the Group Policy Registry Table. The reg hack is:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
"NoNetConnectDisconnect" Reg_DWord 1

quote:

Remove "Map Network Drive" and "Disconnect Network Drive"
User Configuration\Administrative Templates\Windows Components\Windows Explorer

Description
Prevents users from using Windows Explorer or My Network Places to map or disconnect network drives.

If you enable this policy, the system removes the Map Network Drive and Disconnect Network Drive commands from the toolbar and Tools menus in Windows Explorer and My Network Places and from menus that appear when you right-click the Windows Explorer or My Network Places icons. It also removes the Add Network Place option from My Network Places.

This policy does not prevent users from using other methods to connect to network drives, such as by typing the name of a drive in the Run dialog box.


Since savy users can get around this one, you may need to go deeper. I don't remember if I mentioned this, but if you're looking for a commercial product that can lock it down real tight with little effort, checkout http://www.fortres.com/products/fortres_101.htm
They have two products, Fortres 101 and Cooler. Together they are a powerful combo. I use Fortres 101 on about 50 machines here.

Have fun


p.s. HKLM and HKCU are abbreviations.

[ 19 August 2001: Message edited by: LLigetfa ]

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#11638 - 2001-08-20 08:28 PM Re: More registry fun
Anonymous
Unregistered


Ok, right on. Question about policies then. Since I know basically nothing about them yet either. The server of the network I work on is running NT 4.0. If I create network policies on this server to disable the map / disconnect drives or other options, does that filter down to effect all the users that logon to the network no matter what operating system they are using? Or is this something that has to be set up on each indivdual machine?

~Ryan
"Everything is always okay in the end, if it' not okay, it's not the end."

Top
#11639 - 2001-08-20 08:57 PM Re: More registry fun
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
OH BOY! I did say reg hacks are easier...
Not to scare you away or anything but there's some serious reading (RTFM) starting with TechNet article "Guide To Windows NT 4.0 Profiles and Policies (Part 1 of 6) [Q161334]" That's right... six parts, but it's mostly on the Profiles. Policies start on part 4, while part 5 is the registry reference.

For the short answer, there are two policy files, one for 9x, the other for NT. They are divided into user and group policies.

If considering Win2k AD, then you'll need to look into Group Policies. If you want, you can do local Group Policies on Win2k in an NT domain.

Have fun!

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.031 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